From a6c3fce16ab961c72255580987c6fd32fea07c2d Mon Sep 17 00:00:00 2001 From: Stephan Eisfeld Date: Sun, 9 Sep 2018 12:45:55 +0200 Subject: [PATCH] changes rngSeedPin to A0 --- community/seisfeld/tonuino.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/community/seisfeld/tonuino.ino b/community/seisfeld/tonuino.ino index 531aef3..e331e18 100644 --- a/community/seisfeld/tonuino.ino +++ b/community/seisfeld/tonuino.ino @@ -101,7 +101,7 @@ const uint8_t irReceiverPin = 5; // pin used for the ir recei const uint8_t statusLedPin = 6; // pin used for status led const uint8_t nfcResetPin = 9; // used for spi communication to nfc module const uint8_t nfcSlaveSelectPin = 10; // used for spi communication to nfc module -const uint8_t rngSeedPin = A5; // used to seed the random number generator, should be unconnected +const uint8_t rngSeedPin = A0; // used to seed the random number generator const uint8_t buPins[] = { A0, A1, A2 }; // pins used for the buttons const uint8_t buCount = sizeof(buPins); // number of buttons const uint8_t mp3StartVolume = 10; // initial volume of DFPlayer Mini @@ -563,6 +563,9 @@ void setup() { Serial.println(totalTrackCount); pinMode(mp3BusyPin, INPUT); + Serial.println(F("sys | initializing rng")); + randomSeed(analogRead(rngSeedPin)); + Serial.println(F("sys | initializing buttons")); for (uint8_t i = 0; i < buCount; i++) { pinMode(buPins[i], INPUT_PULLUP); @@ -570,9 +573,6 @@ void setup() { bounce[i].interval(10); } - Serial.println(F("sys | initializing rng")); - randomSeed(analogRead(rngSeedPin)); - #if defined(TSOP38238) Serial.println(F("sys | initializing ir receiver")); irReceiver.enableIRIn();