Skip to content

Instantly share code, notes, and snippets.

View MoonshineSG's full-sized avatar

ǝuıɥsuooɯ MoonshineSG

  • Singapore
View GitHub Profile
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"
#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