spleenware / ripple

Arduino Firmware for Ripple LoRa mesh
Other
262 stars 33 forks source link

sharing the code for working with CARDKB on a regular ESP32 #62

Closed richonguzman closed 1 year ago

richonguzman commented 1 year ago

Hi!

could you share the code for working with CARDKB on a regular ESP32???

spleenware commented 1 year ago

It's pretty simple. You just use the I2C 'Wire' library:

include

define CARDKB_ADDR 0x5F

Wire.requestFrom(CARDKB_ADDR, 1); if (Wire.available()) { char c = Wire.read(); // process the key press }

richonguzman commented 1 year ago

should I use a debounce script or just use it with the OneButton library?

THANKS!

spleenware commented 1 year ago

I don't think that is applicable for the CardKb, ie. you just get whole press events, (a down then up, combined).

richonguzman commented 1 year ago

Thanks a Lot for this info, got my CardKB working with the T-Beam Lora32 V.1 and its working awesome.

did a menu and all to mimic APRS VHF over LoRa ;)