This program is free software: you can redistribute it and/or modify
it under the terms of the version 3 GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
*/
#include <TM1638.h>
// define a module on data pin 8, clock pin 9 and strobe pin 7
TM1638 module(8, 9, 7);
byte dots = 1;
long value = 0x1234ABCD;
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
// display a hexadecimal number and set the left 4 dots
module.setDisplayToHexNumber(0x1234ABCD, 0xF0);
delay(3000);
}
void loop() {
byte keys = module.getButtons();
Serial.println(dots);
module.setDisplayToHexNumber(value, dots, true);
// light the first 4 red LEDs and the last 4 green LEDs as the buttons are pressed
module.setLEDs(((keys & 0xF0) << 8) | (keys & 0xF));
Grande funziona ma la variabile
int TM1638_ENABLEDMODULES =1;//{"Group":"TM1638","Name":"TM1638_ENABLEDMODULES","Title":"TM1638 modules connected\r\nSet to 0 if none","DefaultValue":"0","Type":"integer","Template":"int TM1638_ENABLEDMODULES = {0};","Value":"0"}
questa dove cambiarla pure?
TM1638_ENABLEDMODULES = {0};","Value":"0"}
Grazie sono due notti che non riuscivo a capire pur copiando tutti i tutorial alla perfezione