Creating the Hello World program in UIFLow is the easiest of the three methods as it involves dragging and dropping code blocks and filling in the values. All we need to do is:
Step 1 - Start UIFlow, set the Coreink or M5Paper in the settings along with each devices api code.
Step 2 - From the menu on the left, click on the label and drag it to the middle left of the screen.
Step 3 - Next click on the "Label" menu in the middle of the screen to bring up the label blocks.
Step 4 - Click on the Set Font block to place it on in the programming area and drag it to the setup block and change the setting to FONT_Dejavu24.
Step 5 - Click on the Label menu again and now click on the Label Show " " block to add to the screen under the set font block and change "Hello M5" text to Hello World.
Step 6 - In order for the text to be shown on the screen we need to use the Screen Show block. When we send interface items to an E-Ink device, the data is stored "offscreen" in memory. Click on the Screen block to open the screen menu and click on the Set Screen Show block to add it to the program under Label show block.
Step 7 - Now that we have hello world displayed on the screen, we no longer need to have the Coreink or M5Paper powered on. E-ink screens have the benefit of retaining items on screen even when powered off. to switch the Coreink or M5Paper off, click on the Hardware block to open the hardware menu and then click on the Power block to open the power menu. Click on the Power off block and place it under the Set Screen Show block.
Step 8 - Upload to Coreink or M5Paper and your done.
If you press the play button the text will be shown on the screen but devices will not power off. Click on the the setting menu in UIFLow and click on Download to perminatly save it to the Coreink or M5Paper.
The Coreink or M5Paper will restart and run the now stored program will be run from the internal memory and on the Coreink the green LED on the top will go out to show the Coreink has powered off.
Comments