-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wake from Sleep Atmega2560 INT7 (PE7) - Gboard Pro #47
Comments
You must be a millennial 'do it for me, Its out of my safe zone.' You have the right idea where to look for your answer but are unwilling to expend 'your' time. You expect others to do it for you. Chuck. |
Some people love to reinvent the wheel. Some others just ask if anyone have already done it/suggestions for doing it. If you don't want to answer just don't do it. |
Sorry no I don't know how to do that. Perhaps some others would... the
interrupt library should be able to set up the interrupt, but the part
about waking from sleep is something I haven't done.
…On Thu, Apr 5, 2018 at 5:28 AM, Travis92 ***@***.***> wrote:
Hi, first of all i wanted to thank you for this wonderful job of yours.
I am using a Gboard Pro by Itead which is basically an Atmega2560 with
Nrf24 IRQ pin attached to pin PE7 of the atmega. I can use your example
code for generating the ISR on that pin but if i put the MCU i can't wake
it up by that interrupt. Could you please explain how to achieve so? I
suppose it is related to some flag that i read about in the datasheet but i
am not that into technicalities.
Thanks in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#47>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ADSimZ992rq0bjC9BQIXCALzFY3IsgeZks5tlfHlgaJpZM4TINws>
.
--
-Mike Schwager
|
` // // Modify this at your leisure. Refer to https://github.com/GreyGnome/EnableInterrupt/wiki/Usage#Summary // Set up nRF24L01 radio on iBoard uint64_t addresses[1] = {0x65646f4e31}; // Create address for 1 pipe. byte radioData; byte ACK; byte interruptcount=0; void setup() { printf_begin(); //inizializza printf per il debug del nrf24l01 myRadio.enableAckPayload(); //SetACK payload myRadio.setChannel(108); //Set channel //myRadio.maskIRQ(1,1,0); //mask all IRQ triggers except for receive (1 is mask, 0 is no mask) myRadio.openReadingPipe(1, addresses[0]); // Use the first entry in array 'addresses' (Only 1 right now) myRadio.printDetails(); } void loop() {
} dormiora(); void dormiora() Serial.println ("dormo"); } void svegliatiora() This is what I achieved so far. The MCU sleeps and wakes up when the packet is received on the IRQ pin (and triggers the interrupt function). It reboots. I don't know why so far but I'm going on. cheers |
Hi, first of all i wanted to thank you for this wonderful job of yours.
I am using a Gboard Pro by Itead which is basically an Atmega2560 with Nrf24 IRQ pin attached to pin PE7 of the atmega. I can use your example code for generating the ISR on that pin but if i put the MCU i can't wake it up by that interrupt. Could you please explain how to achieve so? I suppose it is related to some flag that i read about in the datasheet but i am not that into technicalities.
Thanks in advance.
The text was updated successfully, but these errors were encountered: