This tutorial explains how can we access evive firmware even when some other code is running on evive. To explain this feature of evive library an example of blinking an on board LED “M1” on evive is taken. Here blinking is achieved by switching between code of glowing the bi color led at “M1” in two colors and firmware. Led stops changing its color as soon as firmware is opened and when we exit firmware led starts changing color again.
Flow of activity
- Make sure that evive library is installed on Arduino IDE. To learn library installation navigate to getting started page for Arduino IDE. If you are already familiar with library installation on Arduino IDE then download zip of evive from here.
- Download the code given below.
- As soon as the code is uploaded to evive led start glowing. Led is glowed in two colors by changing status of digital pin 28 and 29 on which led is connected.
- Now center press navigation key . As soon as navigation key is pressed evive firmware appears on evive screen and led stops glowing in two colors and remain constant in one color suggesting that code has stopped working because firmware is currently running on evive screen.
- Exit firmware by using “Exit Firmware” option in menu. As soon as one exits firmware led starts glowing in two colors again.
This example basically highlights a fact that we can access evive firmware anytime even when some other code is running on evive. Just one point necessary to be kept in mind is that evive library should be included in code sketch.
Carefully observe that before navigation key is center pressed M1 led glows in red and orange color. As soon as navigation key is center pressed the led stops changing its color and remains still and as soon as you exit firmware led starts changing its color again.