Skip to content

Fix analog joystik.#25

Open
WiseLord wants to merge 4 commits into
hjd1964:mainfrom
WiseLord:main
Open

Fix analog joystik.#25
WiseLord wants to merge 4 commits into
hjd1964:mainfrom
WiseLord:main

Conversation

@WiseLord
Copy link
Copy Markdown

After commits 8d8b640 and e07a949, analogRead() returns values in the range 0..4095, since PushButton.cpp continues working in 0..1023.

This causes incorrect (too big) thresholdNS and thresholdEW values and joystick doesn't work (stucks in one direction).

Fixes issue #24.

After commits 8d8b640 and e07a949, analogRead() returns values in
the range 0..4095, since PushButton.cpp continues working in 0..1023.

This causes incorrect (too big) thresholdNS and thresholdEW values and
joystick doesn't work (stucks in one direction).

Fixes issue hjd1964#24.
Most probably, this delay is usefull just when debugging.

But in normal case it just prolongues SHC boot time (and first picture
on the screen).

Leave it only if debug is ON.
Remove useless delay before display initialization.
ESP32 has enough free pins to specify software SPI pinout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant