Search found 9 matches

by icenov
Wed Apr 12, 2017 7:31 am
Forum: MicroPython pyboard
Topic: howto mount sd card in script
Replies: 5
Views: 2208

Re: howto mount sd card in script

Not for my setup unfortunately (Ubuntu 16.10) . It drops back to rshell, but REPL won't connect and I have to ctrl-C out of rshell, restart rshell and then I can REPL and ctrl-D soft reboot. It's not a problem - and it might be related to auto-mounting the SD card, which I haven't disabled yet.
by icenov
Wed Apr 12, 2017 7:06 am
Forum: MicroPython pyboard
Topic: howto mount sd card in script
Replies: 5
Views: 2208

Re: howto mount sd card in script

I did initially use that, but then instantly lost my terminal connection (using rshell) so thought there might be a more subtle way!
by icenov
Wed Apr 12, 2017 6:43 am
Forum: MicroPython pyboard
Topic: howto mount sd card in script
Replies: 5
Views: 2208

howto mount sd card in script

I'm running a script on a pyboard (V1.1) that logs solar data to an SD card. I've decided to (foolishly!) include a check to see if the card is present, and if not then stop the script and print a warning. It works to a point - the switch press works, but I can't find a way to mount the card in soft...
by icenov
Thu Apr 06, 2017 11:53 am
Forum: ESP8266 boards
Topic: how to import esp8266_i2c_lcd.py
Replies: 2
Views: 1285

how to import esp8266_i2c_lcd.py

I've just received my huzzah feather esp8266 board and managed to connect through Arduino and now mpfshell. I can connect through web socket and load files, or run simple python scripts directly from the >>> prompt. But I am trying to run Dave Hyland's I2C LCD https://github.com/dhylands/python_lcd/...
by icenov
Mon Mar 27, 2017 9:26 pm
Forum: ESP8266 boards
Topic: howto: Flash MicroPython with nodemcu flasher and connect with putty on Windows
Replies: 12
Views: 12761

Re: howto: Flash MicroPython with nodemcu flasher and connect with putty on Windows

I was also having problems loading micropython on my esp8266 using Linux terminal. Similar symptoms of no response except blue led almost continuously flashing. Followed your guide and now it works! Thank you!
I used gtkterm and esptool.py.
by icenov
Mon Mar 27, 2017 10:27 am
Forum: General Discussion and Questions
Topic: datetime and strftime
Replies: 7
Views: 3169

Re: datetime and strftime

Thankyou pythoncoder, that has worked well. Another query if I may - the data as logged to file shows the correct time, when I open it using a text editor or spreadsheet, but the actual linux "date modified" timestamp in a directory listing of the files on the SD card is actually ahead of the actual...
by icenov
Tue Mar 14, 2017 10:39 am
Forum: MicroPython pyboard
Topic: elegant shutdown on battery
Replies: 3
Views: 1583

Re: elegant shutdown on battery

Thank you pythoncoder - that worked well. I slightly modified it that defined a function that set a global variable to True, then setup the rest of the code in a While loop to check the state of the variable. def f(): pyb.LED(1).toggle() # activate LED to acknowledge switch press print('Switch press...
by icenov
Sun Mar 12, 2017 7:53 am
Forum: MicroPython pyboard
Topic: elegant shutdown on battery
Replies: 3
Views: 1583

elegant shutdown on battery

On pyboard v1.1 using battery only supply, I am running a script that reads the ADC and writes the value to file (on sd card) every second. I would like to occasionally remove the card and read the file contents. Is there a way to shutdown the script and close the file without just pulling the power...
by icenov
Sun Mar 12, 2017 1:35 am
Forum: General Discussion and Questions
Topic: datetime and strftime
Replies: 7
Views: 3169

datetime and strftime

Just started with micropython and the forum and looking to log some voltages through the X19 port of PYBv1.1 board running 1.8.7 release. I have used sync_rtc to set the board time, but I'd like to use the time to make the filename unique, like - DD_MM_HH_logfile.dat I've used datetime strftime on (...