comparison main.c @ 25:534009795508

adc_random() call
author Matt Johnston <matt@ucc.asn.au>
date Wed, 26 Jun 2013 21:58:18 +0800
parents 5f9a40d6991b
children 292cd17de2a4
comparison
equal deleted inserted replaced
19:5f9a40d6991b 25:534009795508
619 static void 619 static void
620 cmd_vcc() 620 cmd_vcc()
621 { 621 {
622 uint16_t vcc = adc_vcc(); 622 uint16_t vcc = adc_vcc();
623 uint16_t v5 = adc_5v(vcc); 623 uint16_t v5 = adc_5v(vcc);
624 printf_P(PSTR("vcc: %u mV\n5v: %u mV\n"), vcc, v5); 624 uint16_t r = adc_random();
625 printf_P(PSTR("vcc: %u mV\n5v: %u mV random %u\n"), vcc, v5, r);
625 } 626 }
626 627
627 static void 628 static void
628 read_handler() 629 read_handler()
629 { 630 {