Following the video on an OSX 10.12.6 using python 3.7 but getting the following when trying to connect.
Traceback (most recent call last):
File "./tools/esptool.py", line 2853, in <module>
File "./tools/esptool.py", line 2846, in _main
File "./tools/esptool.py", line 2554, in main
File "./tools/esptool.py", line 446, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
File "./tools/esptool.py", line 405, in _connect_attempt
self._setRTS(True) # EN=LOW, chip in reset
File "./tools/esptool.py", line 377, in _setRTS
AttributeError: 'Serial' object has no attribute 'dtr'
i am trying to build my own dynamic slider ( that is what you see in the foto above ) But for a noob like me its pretty hard ( as in takes a lot of time ). But slowly i am getting some where.
The idea behind this is to change the lines for bitmaps ( top, bottom, right and left ) and let the slider button run in between the bitmaps.
Some how when you layer bitmaps they start looking interlaced on screen, so this could be a work around.
Next step is to draw a circle on top of the rectangle as indicator of the slider.
When you draw a circle, in white it doesn't remove it self when you draw the next so i have to mask the next/previous to make it look proper.
getting this dynamic is still pretty tricky for me but a good exercise.
int Bar_lenght = 300;
int Bar_height = 28; // Must be devided by 2
int Bar_steps = Bar_lenght / 10;
int Top_hLine_Start_X = 10; // X postion on screen from the left side
int Top_hLine_Start_Y = 150; // Y-postition on screen from the top
int Top_hLine_End_X = Bar_lenght + Top_hLine_Start_X ; // X End line postion on screen from the left side
int Top_hLine_End_Y = Top_hLine_Start_Y;
int Bot_hLine_Start_X = Top_hLine_Start_X;
int Bot_hLine_Start_Y = Top_hLine_Start_Y + Bar_height ;
int Bot_hLine_End_X = Top_hLine_Start_X + Bar_lenght ;
int Bot_hLine_End_Y = Bar_height + Top_hLine_End_Y ;
int Start_Point = Top_hLine_Start_X;
int End_Point = Top_hLine_Start_X + Bar_lenght;
int But_Radius = 14;
int mid_button = Top_hLine_Start_Y + ( Bar_height/2 );
int bar_start_position = Top_hLine_Start_X + ( But_Radius ) ;
int bar_end_position = Top_hLine_End_X - ( But_Radius ) ;
int bar_position = Top_hLine_Start_X + Bar_steps ;
// Draw the rectangle for the slider
M5.Lcd.drawLine(Top_hLine_Start_X, Top_hLine_Start_Y, Top_hLine_End_X, Top_hLine_End_Y, 0xffff); //Draw a line from the point X0 and Y0 to the point X1 and Y1 with a color from 0 to 65535
M5.Lcd.drawLine(Bot_hLine_Start_X, Bot_hLine_Start_Y, Bot_hLine_End_X, Bot_hLine_End_Y, 0xffff); //Draw a second hor line and draw 2 vertical lines between them in the next two lines of code
M5.Lcd.drawLine(Top_hLine_Start_X, Top_hLine_Start_Y, Bot_hLine_Start_X, Bot_hLine_Start_Y, 0xffff); //Left vert drawn line based on top and bot line
M5.Lcd.drawLine(Top_hLine_End_X, Top_hLine_Start_Y, Bot_hLine_End_X, Bot_hLine_End_Y, 0xffff);//Right vert drawn line based on top and bot line
Install the UIFlow 0.7.0 software on your M5Stack.
Start the M5 stack and select with button B (App.List) then M5GO and again with button B (Run) then you select the appearing menu button C (Next) until you see the menu item Extension IR Remote, then connect the sensor and test.
With this program you can test all sensors of the M5Go IOT system.
(I have already told you the instructions for the construction of the sensors where you can find them)
However, you either need the M5Stack from the M5Go IOT set or the M5Stack Fire, since you need the M5Go bottom for the M5Stack that has the connection bars, but should also go with a Basic or Core M5Stack because the connection strips are nothing but the ports Here are the occupancy of the M5Go Bottom:
I updated the post (the SPIFFS was the original size while I had made space to make it bigger) and added a menu option for 7MB SPIFFS. Have also filed the pull request at espressif, all detailed in the edited lead post.