Search found 161 matches

by SpotlightKid
Thu Feb 23, 2017 3:23 pm
Forum: The MicroPython pyboard
Topic: Activating the LCD160 on top of the pyboard 1.1
Replies: 9
Views: 188

Re: Activating the LCD160 on top of the pyboard 1.1

Feel free to submit a documentation PR on github.
by SpotlightKid
Sun Feb 19, 2017 2:11 pm
Forum: General Discussion and Questions
Topic: Standalone version for ARM-CortexM7
Replies: 4
Views: 175

Re: Standalone version for ARM-CortexM7

Sounds useful for others as well. Do you have a forked repo with your changes? Will you try to compile the latest version as well?
by SpotlightKid
Tue Feb 07, 2017 7:39 am
Forum: Programs, Libraries and Tools
Topic: Noob question on Modules
Replies: 10
Views: 320

Re: Noob question on Modules

I'm a little bit surprised myself that the official tutorial is inaccurate. But then again it has been around since the early nineties!
by SpotlightKid
Mon Feb 06, 2017 6:20 pm
Forum: Programs, Libraries and Tools
Topic: Noob question on Modules
Replies: 10
Views: 320

Re: Noob question on Modules

Then these docs are out of date. Micropython (being a Python 3 implementation), agrees with me: $ mkdir -p test/spamm $ cd test $ echo "get_spamm = lambda: 'Spamm, Spamm, Spamm'" > spamm/ham.py $ MICROPYPATH=. micropython MicroPython v1.8.7-187-gbd04ed3e8 on 2017-02-04; linux version Use C...
by SpotlightKid
Mon Feb 06, 2017 8:13 am
Forum: Programs, Libraries and Tools
Topic: Noob question on Modules
Replies: 10
Views: 320

Re: Noob question on Modules

In any case, the first method is the way to go, if you want to have other modules in the "umqtt" namespace, which you would then copy into the same directory and import with:

Code: Select all

from umqtt.something import whatever
by SpotlightKid
Mon Feb 06, 2017 8:08 am
Forum: Programs, Libraries and Tools
Topic: Noob question on Modules
Replies: 10
Views: 320

Re: Noob question on Modules

Are you sure? AFAIK Python 3 doesn't require "__init__.py" files anymore.

I always just used the second method myself, though.
by SpotlightKid
Mon Feb 06, 2017 8:04 am
Forum: General Discussion and Questions
Topic: DHT11 don't work
Replies: 2
Views: 112

Re: DHT11 don't work

Can you describe how you have wired up things?

Also, use a forum search for "DHT11", there are several threads with hints on how to use this module.
by SpotlightKid
Mon Feb 06, 2017 7:51 am
Forum: ESP8266 boards
Topic: Esptool.py erase_flash or write flash does absolutely nothing
Replies: 1
Views: 116

Re: Esptool.py erase_flash or write flash does absolutely nothing

The command line you have given contains an extra space between "--" and "port" that must not be there. With programs that follow the Unix conventions of command line arguments, a double dash ("--") on its own usually means the end of the command line options and the be...
by SpotlightKid
Mon Feb 06, 2017 7:38 am
Forum: Programs, Libraries and Tools
Topic: Noob question on Modules
Replies: 10
Views: 320

Re: Noob question on Modules

I believe that I could simply copy the .py files to the root filesystem of the board, but I'm just wondering on the above module as it actually is a umqtt directory with simple.py in it. Would I recreate that on the board filesystem, and if so, how would I import the module? Yes, create a "umq...
by SpotlightKid
Wed Feb 01, 2017 10:08 pm
Forum: ESP8266 boards
Topic: ESP8266 Micropython TCP Socket Simple Sample Code
Replies: 1
Views: 141

Re: ESP8266 Micropython TCP Socket Simple Sample Code

On the Raspberry Pi run a TCP server listening on port 8000 (lets assume its IP address visible to the ESP8266 is 192.168.4.2) in a terminal: $ netcat -l --tcp --local-port=8000 On the ESP8266 run the following to connect to the server and send the string "Hello World!": import socket sock...

Go to advanced search