k3ng / k3ng_cw_keyer

K3NG Arduino CW Keyer
http://blog.radioartisan.com/arduino-cw-keyer/
GNU General Public License v3.0
416 stars 216 forks source link

Command buttons 1-3 are not working with ARDUINO_GENERIC_STM32F103C. #100

Closed 7m4mon closed 4 years ago

7m4mon commented 4 years ago

I build a K3NG Keyer with ARDUINO_GENERIC_STM32F103C. I noticed command buttons 1-3 are not working. (Only "Button - 0" is working). This issue caused because the range of AnalogRead() was different. So, I fixed the range of "max_value" in "buttonarray.h"

if defined(ARDUINO_ARCH_ESP32)

#define max_value 4095

else

#define max_value 1023

endif

if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_GENERIC_STM32F103C)

#define max_value 4095

else

#define max_value 1023

endif

k3ng commented 4 years ago

Thanks !

73 Goody K3NG

7m4mon commented 4 years ago

It works very well ! TU, 73!

K3NG_Keyer1 K3NG_Keyer2