I modified this (https://gist.github.com/oskar456/95c66d564c58361ecf9f) RPi driver for the cheap bh1750 i2c digital light sensor for MicroPython;
https://github.com/PinkInk/upylib/tree/master/bh1750
Search found 61 matches
- Fri Oct 28, 2016 5:34 pm
- Forum: Drivers for External Components
- Topic: bh1750 i2c digital light sensor
- Replies: 3
- Views: 7598
- Wed Sep 21, 2016 2:01 pm
- Forum: WiPy and CC3200 boards
- Topic: NEW: WiPy 2.0 - shipping 10 Oct 2016
- Replies: 62
- Views: 32150
- Thu Aug 18, 2016 12:59 am
- Forum: General Discussion and Questions
- Topic: mpy usocket.readinto == cpy socket.recv_into ?
- Replies: 3
- Views: 2228
Re: mpy usocket.readinto == cpy socket.recv_into ?
Ok, got you - didn't understand how you got there but the comments in the http server example make sense. Thanks. This was in the context of an http server reading files from flash and serving them up over http - is there a way to negate the need for an intermediary Python buffer object and read fro...
- Wed Aug 17, 2016 3:03 am
- Forum: General Discussion and Questions
- Topic: mpy usocket.readinto == cpy socket.recv_into ?
- Replies: 3
- Views: 2228
mpy usocket.readinto == cpy socket.recv_into ?
I think MicroPython's usocket.readinto method does the same thing as cpython's socket.recv_into. Hence for testing in cpython, before deploying to esp or WiPy, I've been doing this at import time; try: import usocket as socket except: import socket socket.socket.readinto = socket.socket.recv_into .....
- Wed Aug 03, 2016 2:27 pm
- Forum: General Discussion and Questions
- Topic: Linux Command Line on Windows
- Replies: 14
- Views: 6793
Re: Linux Command Line on Windows
Had to wait for general availability of the anniversary update, but about 15 minutes of git cloning and resolving dependencies later ... unix micropython runs on windows, and usocket works perfectly.
"Fantastic" for those of us who for whatever reason are stuck on windows, much less hassle than a VM.
"Fantastic" for those of us who for whatever reason are stuck on windows, much less hassle than a VM.
- Fri Jul 15, 2016 10:48 am
- Forum: Programs, Libraries and Tools
- Topic: VNC's Remote Framebuffer Protocol for mpy
- Replies: 0
- Views: 2469
VNC's Remote Framebuffer Protocol for mpy
I built a remote framebuffer protocol library for micropython, initially planning to implement a Tetris server ... but I got distracted before getting that far. I just cleaned it up and am throwing it out there in case anyone else can find a use for it; https://github.com/PinkInk/upylib/tree/master/...
- Sun Jul 10, 2016 1:11 am
- Forum: General Discussion and Questions
- Topic: Linux Command Line on Windows
- Replies: 14
- Views: 6793
Re: Linux Command Line on Windows
Excellent, I'll try to get the command line installed myself and test. Thanks.
- Sat Jul 09, 2016 6:08 pm
- Forum: General Discussion and Questions
- Topic: Linux Command Line on Windows
- Replies: 14
- Views: 6793
Re: Linux Command Line on Windows
Does usocket work on micropython unix build, running under Win 10?
- Thu Jun 09, 2016 9:36 am
- Forum: MicroPython pyboard
- Topic: Implementing/Overriding operators
- Replies: 1
- Views: 1696
Re: Implementing/Overriding operators
Reference https://github.com/micropython/micropython/wiki/Differences, particularly """3.MicroPython does not implement complete CPython object data model, but only a subset of it.""". Micropython is "micro" ... just how much of Python it crams into a miniscule package is a miraculous testament to j...
- Fri May 27, 2016 1:11 am
- Forum: ESP8266 boards
- Topic: esp-open-sdk build error - python is missing or unusable (debian)
- Replies: 6
- Views: 6333
Re: esp-open-sdk build error - python is missing or unusable (debian)
Installing python2.7-dev fixed it for me on latest Ubuntu
Tim
Tim