Wake Up
-
Arduino Sleep & Wake up아두이노 2017. 10. 30. 17:17
아두이노 Wake up & Sleep #include #include // I2C bus address declarations: #define DS1337_I2C_ADDRESS 0x68 // DS1337 void wake () { // cancel sleep as a precaution sleep_disable(); // must do this as the pin will probably stay low for a while detachInterrupt (0); } void setup() { // initialize ouptut pins pinMode(7, OUTPUT); // initialize I2C bus Wire.begin(); // initialize RTC Wire.beginTransmissi..