estado = 0
estado2 = 0
cont = 0
A = 10
B = 11
C = 12
D = 13
E = 14
arduino.pinMode(15, "ANALOG_INPUT") #PIN P15, there is no mode analog input in arduino but pycom needs it
arduino.pinMode(8, "INPUT") # modes are "INPUT","OUTPUT","INPUT_PULLUP","INPUT_PULLDOWN","ANALOG_INPUT"
global estado, estado2, cont
value = arduino.analogRead(13)
millivolts = 1100 * value / 1.1 #max volts for analog in is 1.1V
db = millivolts / 10
estado2 = arduino.digitalRead(8)
if estado2: #this means high or you can write if estado2==1
estado = arduino.digitalRead(7)
cont += 1
The console always showed me:
"Syncing the project with the LoPy. Please wait...
when I tried to load the Python scripts ino the LoPy.
The solution I found was using a FTP to load the files.
Section 2.4 from this page shows you how to configure the FTP settings to be able to do so: https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html
I used FileZila client and worked perfectly.
Make sure you connect to the LoPy WiFi to load the files with the FTP.
"Connect your computer to the WiFi network named after your board (e.g. lopy-wlan-xxxx, wipy-wlan-xxxx). The password is www.pycom.io"
I could not make it work through the Pymakr but at least in this way I was able to load everything into the LoPy with no problems.
Thanks for the help.
I never knew about C:\ProgramData\Microsoft\Windows\Start Menu\Programs
I found the entry and copied it to the desktop. It works fine.
It never appeared in the visible start menu, but then Windows has a certain "whimsical" aspect to it operation :)
@shaun I would tent to agree that if pycom sold and promised on a tool that would enable a quickstart with their devices, that pymakr could/should be feature-full.
On the other side, my remark was considering non developer type profiles, which is not my case. My day job is developing python so I am unlikely to end up using Eric/PyMakr when programming for my devices (I'm usually in vim/emacs/plateform.io when developing).
I do meet @Pete's point of view when it comes to priorities. Maybe pycom should have some tool to get the community to vote on such priorities (pragmatic approach). And if they do things in the open, the community can chip in.
Ok, after the serial connection sync from PyMakr which worked I noticed I could no longer see by LoPy on the network. On investigation I find it seems to have changed my boot.py.
Is this expected behavior ?? because if it is does not make sense. If syncing changes boot.py it is going remove my custom code to connect to my Wifi network. So syncing via Wifi is never going to work if it breaks the connection setup it is trying to use. It is in effect shooting itself in the foot.