Mercurial > pihelp
changeset 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 |
files | main.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Tue Jun 25 13:55:11 2013 +0800 +++ b/main.c Wed Jun 26 21:58:18 2013 +0800 @@ -621,7 +621,8 @@ { uint16_t vcc = adc_vcc(); uint16_t v5 = adc_5v(vcc); - printf_P(PSTR("vcc: %u mV\n5v: %u mV\n"), vcc, v5); + uint16_t r = adc_random(); + printf_P(PSTR("vcc: %u mV\n5v: %u mV random %u\n"), vcc, v5, r); } static void