Go Down

Topic: Reading buttons on a TM1638 LED & KEY module (Read 400 times) previous topic - next topic

BrianO

My first question here so please be gentle.
Without the use of a library can someone give me a few hints and tips how to read the buttons on these module to do something on the main arduino instead of simply illuminating the LEDs on the TM1638 module.
I understand I need to set the thing into "Read key scanning data" mode with a 0x42 command but after that I'm flummoxed.

spycatcher2k

YOU need to provide the data sheet, I'm not going to hunt down a datasheet to give YOU help.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

BrianO

Spycatcher2k
The data sheet for the IC is at https://www.futurashop.it/image/catalog/data/Download/TM1638_V1.3_EN.pdf

As implied previously I've got 80%+ of what I'm trying to get working but just need a little input from someone else who may have used the LED & KEY device previously.
All the demos I've found on-line seem to use the buttons to only light the on-board LEDs.

spycatcher2k

Are you able to read a key with your software? are you able to read when no key is pressed in your software? Also, ask a mod to move this to a more sutable section, this is NOT other software development.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

BrianO

Spycatcher2k.

Thank you so much for all your kind and considerate assistance.
I must be missing something. As I see it is The fundamental problem in my mind is; if the arduino sends 0x42 it putting the LED & KEY module into Read Key Scanning Data mode and the data line becomes an input to the arduino.
If as I suspect the LED & KEY module resets the data line to an input after outputting the key status to the arduino how does the arduino grab that data?

Go Up