Search found 6 matches
- Sun Apr 08, 2018 8:51 pm
- Forum: Programs, Libraries and Tools
- Topic: webpad: webrepl + jupyter
- Replies: 1
- Views: 2205
webpad: webrepl + jupyter
Was looking for a way to connect jupyter with webrepl. To make a webbased tutorial for micropython Found this https://github.com/nickzoic/mpy-webpad A html page with some javascript and a webrepl websocket It can be adjusted very easily - plain html. I can imagine that such a webpage even can be hos...
- Thu Mar 22, 2018 10:13 pm
- Forum: ESP8266 boards
- Topic: class DimLed ?
- Replies: 7
- Views: 6851
Re: class DimLed ?
I've found an example from the gpiozero library:
https://gpiozero.readthedocs.io/en/stab ... brightness
Nice code.
But thats for the raspberry.
Grts.
https://gpiozero.readthedocs.io/en/stab ... brightness
Nice code.
But thats for the raspberry.
Grts.
- Wed Jan 31, 2018 10:07 am
- Forum: ESP8266 boards
- Topic: class DimLed ?
- Replies: 7
- Views: 6851
Re: class DimLed ?
efahl and python coder, thanks for the reply. The solutions you describe still need a Pin object as argument. The idea is that the Pin object is created during initialization of the DimLed object So DimLed(2) first creates a Pin object and then uses that object to create a PWM object. from machine i...
- Thu Jan 25, 2018 2:56 pm
- Forum: ESP8266 boards
- Topic: class DimLed ?
- Replies: 7
- Views: 6851
Re: class DimLed ?
The Signal class is probably an example how to handle this.
https://docs.micropython.org/en/latest/ ... ignal.html
But is written in c++
https://docs.micropython.org/en/latest/ ... ignal.html
But is written in c++
- Wed Jan 24, 2018 5:18 pm
- Forum: ESP8266 boards
- Topic: class DimLed ?
- Replies: 7
- Views: 6851
class DimLed ?
I would like to create a class for a dimmed led. creating a Led class that inherits from Pin works fine. class Led(Pin): def __init__(self, pin): Pin(pin, Pin.OUT) But know i would like to create a class DimLed. I tried the following code. class DimLed(PWM): def__init_(self,pin): PWM(Pin(pin)) That ...
- Sun Nov 12, 2017 11:36 am
- Forum: Programs, Libraries and Tools
- Topic: mpfshell: how to execute a file
- Replies: 4
- Views: 4699
mpfshell: how to execute a file
I would like to run a file on the esp with mpfshell.
There is a command exec in mpfshell but that does not work and is not documented.
Ampy has a run - function, but I like to use it with a websocket.
There is a command exec in mpfshell but that does not work and is not documented.
Ampy has a run - function, but I like to use it with a websocket.