Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

DS1307 initializing

$
0
0
hello , every one in the following code , the seven segments clock is working correctly but i don not need to loose the seconds every time i switched on , so i add " void ds1307_init() " but it always show - in seconds - 03 ; so please what is wrong ?

[I've put your code into a [CODE] block so the indentation can be shown -- KrisBlueNZ, moderator]

Code:
unsigned short mask(unsigned short num) {
    switch (num) {
    case 0 : return 0xC0;
    case 1 : return 0xF9;
    case 2 :...
DS1307 initializing

Viewing all articles
Browse latest Browse all 1271

Latest Images

Trending Articles



Latest Images