Search found 40 matches

by nui_de
Fri Apr 01, 2016 1:29 pm
Forum: WiPy and CC3200 boards
Topic: onewire with uart
Replies: 2
Views: 3401

Re: onewire with uart

Thanks Robert,

I will try that out and hopefully have a new and fast onewire library soon ;)
by nui_de
Fri Apr 01, 2016 1:26 pm
Forum: WiPy and CC3200 boards
Topic: Driver for WS2812
Replies: 16
Views: 15672

Re: Driver for WS2812

Hi Daniel, I only wanted to report two obvious bugs in your source: https://github.com/danicampora/wipy/blob/master/lib/ws2812/ws2812.py First, please look at the SPI values: (corrected version) # values to put inside the SPI register for each bit of color bits = (bytearray((0xE0, 0xE0)), bytearray(...
by nui_de
Wed Mar 30, 2016 5:59 pm
Forum: WiPy and CC3200 boards
Topic: onewire with uart
Replies: 2
Views: 3401

onewire with uart

Hi, i like to write a onewire library using uart for communication with my onewire bus as described here: https://www.maximintegrated.com/en/app-notes/index.mvp/id/214 Is it possible to set the the GPIO01(Tx) to open drain when initializing as uart or do I need the external open-drain buffer chip?
by nui_de
Tue Mar 29, 2016 3:55 pm
Forum: WiPy and CC3200 boards
Topic: Rotary encoder
Replies: 7
Views: 7303

Re: Rotary encoder

I don't think that the respons seems to be stupid after you read my reply - the fact that there was a typo. When you see any source in a posting you don't want to read the complete tread (okay, easy in this case) to find out that this code does not work - just my opinion. However I added a line in m...
by nui_de
Tue Mar 29, 2016 2:21 pm
Forum: WiPy and CC3200 boards
Topic: Rotary encoder
Replies: 7
Views: 7303

Re: Rotary encoder

:oops:
yep - thank you, I have read the manual but missed that statement and of course its "RISING"
Looked fine to me as I wrote it down and I got no Error with "RAISING".
by nui_de
Tue Mar 29, 2016 8:22 am
Forum: WiPy and CC3200 boards
Topic: Rotary encoder
Replies: 7
Views: 7303

Re: Rotary encoder

Pin.IRQ_RISING_FALLING is not supported by the wipy - so I used Pin.IRQ_RAISING
or what should it be?
by nui_de
Mon Mar 28, 2016 1:20 pm
Forum: WiPy and CC3200 boards
Topic: Rotary encoder
Replies: 7
Views: 7303

Re: Rotary encoder

Here is my adapted version for wipy. Original Code thanks to Christopher Arndt. # -*- coding: utf-8 -*- """MicroPython rotary encoder library.""" from machine import Pin ENC_STATES = (0, -1, 1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, 0) class Encoder(object): def __init__(self, pin_x = 'GP4',pin_y = ...
by nui_de
Mon Mar 28, 2016 10:17 am
Forum: WiPy and CC3200 boards
Topic: Pin Interrupts
Replies: 1
Views: 2796

Pin Interrupts

At the moment I do not get the simplest things running, tried the sample code for interrupts from the documentation: http://micropython.org/resources/docs/en/latest/wipy/library/machine.Pin.html from machine import Pin def pincb(pin): print(pin.id()) pin_int = Pin('GP10', mode=Pin.IN, pull=Pin.PULL_...
by nui_de
Sat Mar 26, 2016 1:59 pm
Forum: WiPy and CC3200 boards
Topic: Rotary encoder
Replies: 7
Views: 7303

Rotary encoder

Hi,

wondering if somebody already has written a routine for wipy to work with a rotary encoder
and likes to share it ;)
by nui_de
Fri Mar 25, 2016 8:04 pm
Forum: WiPy and CC3200 boards
Topic: I2C problems?
Replies: 6
Views: 6132

Re: I2C problems?

Hi !

I got the same problem with I2C and OSError - please try to solder the data and clock line and
tell me if the problem is solved.