I było dobrze gdy było to tylko miganie dioda , ale później wgrałem przykład z oszczędzaniem energii i sie porobiło.
Program działa , prądy pobierane przez moduł spadają z 6mA do 0.85uA ale nic nie da sie wgrać , wyskakuje błąd "Problem z wgrywaniem na płytkę"
https://www.dropbox.com/s/7wme2hh9s2326 ... 6.png?dl=0
Co robić , czy pozostaje tylko wgranie po przez programator isp ?
Code: Select all
// **** INCLUDES *****
#include "LowPower.h"
// Use pin 2 as wake up pin
const int wakeUpPin = 2;
void wakeUp()
{
// Just a handler for the pin interrupt.
digitalWrite(5,LOW);
delay(125);
digitalWrite(5,HIGH);
delay(125);
}
void setup()
{
// Configure wake up pin as input.
// This will consumes few uA of current.
pinMode(wakeUpPin, INPUT);
pinMode(5,OUTPUT);
}
void loop()
{
// Allow wake up pin to trigger interrupt on low.
attachInterrupt(0, wakeUp, LOW);
// Enter power down state with ADC and BOD module disabled.
// Wake up when wake up pin is low.
LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF);
// Disable external pin interrupt on wake up pin.
detachInterrupt(0);
// Do something here
// Example: Read sensor, data logging, data transmission.
}
