Search found 17 matches

by oli
Wed Jul 11, 2018 5:31 am
Forum: Newsletter archive
Topic: MicroPython Newsletter Issue 1
Replies: 29
Views: 316154

Re: MicroPython Newsletter Issue 1

Hi, the new board looks great. But what about the RAM. I have very often the problem the my current boards run out of RAM and with increasing count of complexity coming in with BLE/Wifi the boards needs RAM. So how is the plan for this?

Thanks!
Oli
by oli
Tue Oct 11, 2016 11:12 am
Forum: General Discussion and Questions
Topic: struct issue
Replies: 3
Views: 3600

struct issue

Hi,

i have a strange issue:

Code: Select all

>>> struct.unpack('>B', '\x7f')[0]
127
>>> struct.unpack('>B', '\x80')[0]
194
As fa as the documentation from python / struct says, "B" is an unsigned int, and so it should give the correct value of 128 - or am i wrong?

thanks!
Oli
by oli
Fri Oct 07, 2016 9:23 am
Forum: General Discussion and Questions
Topic: problem with byte string decoding
Replies: 5
Views: 8531

Re: problem with byte string decoding

@Roberthh: Thanks!
@deshipu: Like i said - legacy code not written by me, so i want to get it running, without changing to much - if it finally runs, then i will see, whether this stuff is necessary ;)
by oli
Fri Oct 07, 2016 8:36 am
Forum: General Discussion and Questions
Topic: problem with byte string decoding
Replies: 5
Views: 8531

Re: problem with byte string decoding

Ok.... iPython gave me the answer: UnicodeDecodeError: 'ascii' codec can't decode byte 0xf7 in position 0: ordinal not in range(128) Then the behaviour is clear. So now the question is, how to get rid of the 'b' before the string? I need the transform because of the following code: x = b'\xf7\x03\x1...
by oli
Fri Oct 07, 2016 8:30 am
Forum: General Discussion and Questions
Topic: problem with byte string decoding
Replies: 5
Views: 8531

problem with byte string decoding

hi, i have a byte string and need to transform it to an ascii string due to legacy code reasons. here is the code: MicroPython v1.8.4 on 2016-09-09; PYBv1.1 with STM32F405RG Type "help()" for more information. >>> x = b'\xf7\x03\x14\x04\x00\x01' >>> x.decode('ascii') '\x07\x03\x14\x04\x00\x01' If yo...
by oli
Wed May 04, 2016 9:01 am
Forum: ESP8266 boards
Topic: OSError 19 (ENODEV)
Replies: 15
Views: 41148

Re: OSError 19 (ENODEV)

Hi, thanks you! Here is the output: import port_diag Flash ID: 1340c8 (Vendor: c8 Device: 4013) Flash bootloader data: Byte @2: 00 Byte @3: 00 (Flash size: 512KB Flash freq: 40MHZ) My ESP Module is an old one (1.5 years old). It is the little blue one, with the 8 pin connector. there is absoultely n...
by oli
Wed May 04, 2016 6:22 am
Forum: ESP8266 boards
Topic: OSError 19 (ENODEV)
Replies: 15
Views: 41148

OSError 19 (ENODEV)

Hi,

today i got my binary to flash my ESP Module. After flashing the Module, the REPL over UART is working! Great work from you guys so far!
But i hit a little error. When i want to call os.listdir() i get the error OSError: 19
2016-05-04 08_08_05-COM7 - PuTTY.png
2016-05-04 08_08_05-COM7 - PuTTY.png (2.79 KiB) Viewed 34522 times
What could that be?

Thank you!
by oli
Thu Feb 11, 2016 12:32 pm
Forum: MicroPython pyboard
Topic: Sharing input capture callbacks
Replies: 3
Views: 3932

Re: Sharing input capture callbacks

Thank you! That help me. Now it looks better :)
Timer 8 is working also, no clue what went wrong, when i first tested it...
by oli
Tue Feb 09, 2016 8:39 pm
Forum: MicroPython pyboard
Topic: Sharing input capture callbacks
Replies: 3
Views: 3932

Sharing input capture callbacks

hi, today i wrote a little script to monitor 5 little fans by reading a tacho-signal. this signal is a kind of a square-wave signal with around 350Hz. For reading this signal i am using the input capture mode of the timers. Because i am using the pins X1-X4 i can use the same timer with different ch...
by oli
Tue Oct 20, 2015 7:45 am
Forum: WiPy and CC3200 boards
Topic: Get current Wifi object
Replies: 11
Views: 9712

Re: Get current Wifi object

that was quick! thank you very much for your great work!