This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo locale-gen en_US.UTF-8 | |
sudo dpkg-reconfigure locales | |
sudo sh -c "echo 'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8' >> /etc/environment" | |
sudo sh -c "echo -e 'LANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8' >> /etc/default/locale" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
//i2c | |
#define SLAVE_ADDRESS 0x04 | |
//types of led values | |
#define LED_OFF 0 | |
#define LED_ON 1 | |
#define LED_BLINK 2 | |
#define LED_BLINK_FAST 3 |