phil99
 Guru
 Joined: 11/02/2018 Location: AustraliaPosts: 3313 |
| Posted: 08:36pm 28 Nov 2022 |
|
|
|
A button can be added to the pot. input without using an extra pin. Add resistors (about 1/10th of pot. value) between the top and bottom ends of the pot. to the rails and put the button from wiper to ground. The bottom resistor ensures voltage can only reach zero when the button is pressed. The top resistor prevents a short if the button is pressed while the wiper is at the top. A short press enters the letter and a long one enters the name, as in the above program.
Edit Forget that. Two buttons can be added to the pot. input without using any extra pins. Use the second to delete the last letter.
 The top button inputs 3V3 and the lower 0V while the pot goes from 0.16V to 3.14V. Edited 2022-11-29 17:23 by phil99 |