Arduino: RTC
sumber: http://tronixstuff.com/2014/12/01/tutorial-using-ds1307-and-ds3231-real-time-clock-modules-with-arduino/ Sambungan: SDA - pin A4 SCL - pin A5 Source: #include "Wire.h" #define DS3231_I2C_ADDRESS 0x68 // Convert normal decimal numbers to binary coded decimal byte decToBcd(byte val) { return( (val/10*16) + (val%10) ); } // Convert binary coded decimal to normal decimal numbers byte
| Penerbit | Taratsa |
|---|---|
| Tahun | 2017-05-06 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:59c511b0-dc69-5fbd-baa5-825bc63a0acd |