

#ALPHA NUMERIC PHONE KEYPAD FREE#
Please feel free to ask for clarity, and if you do know the solution, please explain what each line and statement is doing so that I can gain some insight into the language. If ((padTouched = currTouched) or (padTouched = 0)) If ((currTouched > 0) and (not currTouched = lastTouched)) Void drawText(char *text,uint16_t textColour = WHITE) Void resetDrawText(char *text,uint16_t textColour = WHITE, uint16_t backColour = BLACK) sensorĪdafruit_NeoPixel indicator = Adafruit_NeoPixel(1, neo_pin, NEO_GRB + NEO_KHZ800)

For example: the number 1 to the letter A. initialize the variables used by the cap. Please try pressing the key a few times and this should change from number to letter. import all packagesĪdafruit_SSD1351 screen = Adafruit_SSD1351(cs, dc, mosi, sclk, rst) Here's my current code, it's not pretty, but it's my current attempt at this. My biggest hurdle is that I have very limited knowledge of C, and what I have done so far has gone well, with the occasional hiccup, however this is far beyond my knowledge. Imagine you're using your old Nokia phone and typing a message to a friend, you press 2 twice for 'b' and 9 three times for 'y'. (If multiple keys are touched, their ids are added up, but this won't happen.) Each pad returns its value, with the first being 1, the second being 2, the third 4, 8, 16 up until 2^12. Use a Map, where the keys are the letters and digits, and the value is the number on the keypad. I'm trying to make a capacitive touch keypad to take input from a user, and output a string of characters generated by this input. Im taking on the simple task of converting an alphanumeric phone number to a string of digits.
