Changed to work with: http://redbearlab.com/blenano/
Fork of RNG by
Revision 3:75b4f86fb3aa, committed 2015-08-30
- Comitter:
- dgomes
- Date:
- Sun Aug 30 01:06:04 2015 +0000
- Parent:
- 2:2eb90943983b
- Commit message:
- Works on the http://redbearlab.com/blenano/;
Changed in this revision
Random.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2eb90943983b -r 75b4f86fb3aa Random.cpp --- a/Random.cpp Tue Sep 17 18:18:15 2013 +0000 +++ b/Random.cpp Sun Aug 30 01:06:04 2015 +0000 @@ -2,11 +2,11 @@ #include "Crypto.h" static uint8_t pool[16]; -static AnalogIn e(p19),f(p20); +static AnalogIn e(A3),f(A4); void Random::init() { - AnalogIn a(p15), b(p16), c(p17), d(p18); + AnalogIn a(A1), b(A0), c(A2), d(A5); uint16_t tmp = a.read_u16(); memcpy(pool, &tmp, 2);