Questions tagged [kotlin]

3 questions
3
votes
0 answers

I2cDevice: Cannot read from device (Android Things)

I am trying to write an I2C Communication layer for my PN532 NFC Module. I have the Arduino code working fine, but I am trying to implement it for Android things. In Arduino my output is as follows: WriteCommand Write: 0 Write: 0 …
Quintin B
  • 689
  • 1
  • 5
  • 20
1
vote
0 answers

Changing HDMI diplay from 1 to 2 programmatically

I have a Raspberry PI 4 with a dual display setup I wanted to show different operations on both displays depending on some logic. My application is built with compose multiplatform I can make two screens by just following the code fun main(args:…
0
votes
0 answers

BTS7960 pwm values

I have a BTS7960 h-bridge and I am trying to make a motor to move forward and backward using pwm values. I am using the pi4j library to control the pins. The pins L_EN and R_EN are initialized as DigitalOutputPins. Case Study 1 When I am…
LiTTle
  • 123
  • 7