hello I am trying to work with micropyton v1.1. I try to make the led to turn on but i fail . this is my code :
import pyb
pyb.LED(4).on()
but when i try to save it by the name 'main.py' i get this error :
[Errno 22] Invalid argument :'G/main.py'
how to fix this problem ?
[Errno 22] Invalid argument problem
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: [Errno 22] Invalid argument problem
You haven't really given us much to go on here.
I'm guessing you're using a Pyboard 1.1 as the MicroPython language is at version 1.9.4, and I'm guessing you're using Windows and the Pyboard is mapped to drive G:. Please confirm. If so, have you checked that drive G: contains main.py and boot.py as a new Pyboard should have those already present.
What editor are you using and how are you saving the file? What program is producing this error message? What terminal emulator are you using to access the Pyboard REPL?
I'm guessing you're using a Pyboard 1.1 as the MicroPython language is at version 1.9.4, and I'm guessing you're using Windows and the Pyboard is mapped to drive G:. Please confirm. If so, have you checked that drive G: contains main.py and boot.py as a new Pyboard should have those already present.
What editor are you using and how are you saving the file? What program is producing this error message? What terminal emulator are you using to access the Pyboard REPL?
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: [Errno 22] Invalid argument problem
I am using the Pyboard 1.1 .
I am using windows and my python verson is : 'IDLE (Python 3.6 32-bit).
the Pyboard indeed mapped to drive G, and it does contain the main.py and boot.py .
I am using IDLE (Python 3.6 32-bit) to edit the program
by the way i am new to python , I am used to program Matlab and C language.
I am using windows and my python verson is : 'IDLE (Python 3.6 32-bit).
the Pyboard indeed mapped to drive G, and it does contain the main.py and boot.py .
I am using IDLE (Python 3.6 32-bit) to edit the program
by the way i am new to python , I am used to program Matlab and C language.
Re: [Errno 22] Invalid argument problem
Should not the files you save to be named "G:/main.py"?[Errno 22] Invalid argument :'G/main.py'