Search found 288 matches

by Turbinenreiter
Thu Aug 14, 2014 3:51 pm
Forum: MicroPython pyboard
Topic: nRF24
Replies: 4
Views: 2881

Re: nRF24

I gave up on this.
It uses SPI, which should be easy, but whatever command I send, I only get 0xff's back.
by Turbinenreiter
Thu Aug 14, 2014 2:10 pm
Forum: Kickstarter logistics for the Micro Python campaign
Topic: PyBoards for post-kickstarter orders soon?
Replies: 5
Views: 4986

Re: PyBoards for post-kickstarter orders soon?

Any idea for a good drop-in replacement for the sold-out bluetooth module?

edit: Found it: http://www.ebay.de/itm/261057322078?ssP ... 1497.l2649
by Turbinenreiter
Thu Aug 14, 2014 8:44 am
Forum: Programs, Libraries and Tools
Topic: A simple shell for pyboard
Replies: 45
Views: 15512

Re: A simple shell for pyboard

I now have working: cat file1 > file2 echo print('test') > test.py micropython test.py ls (without invisible files) ls -a (with invisible files) Also: cd without args crashed, I made it cd to / The '>' is implemented within do_cat and do_echo - I guess this should be done in a more generic way by bu...
by Turbinenreiter
Wed Aug 13, 2014 8:31 pm
Forum: Hardware Projects
Topic: Benchmarks
Replies: 10
Views: 6027

Benchmarks

Ok, here is the function I used to test: def test(): l = 10000000 s = 0 for i in range(l): s = s + 1 return s And these are the results: pyboard: standard: 33.061 s native 15. 962 s viper 1.906 s unix micropython standard: 0.48 s |1088 Kbytes micropython viper: fails pypy2: 0.06 s | 18391 Kbytes cpy...
by Turbinenreiter
Wed Aug 13, 2014 6:52 am
Forum: Programs, Libraries and Tools
Topic: A simple shell for pyboard
Replies: 45
Views: 15512

Re: A simple shell for pyboard

On the REPL you can use arrow-up to get the last lines you entered. It's limited to a couple of lines tough.
by Turbinenreiter
Mon Aug 11, 2014 3:43 pm
Forum: General Discussion and Questions
Topic: Enjoying Micropython and board
Replies: 4
Views: 2300

Re: Enjoying Micropython and board

I'd like to see more documentation on the rules for using the special code emitters. My attempts at using them, even on simple functions, have been rewarded by an opportunity to test the board's hard reset facility. I'm pretty sure this behavior is considered a bug, not a limitation that has to be ...
by Turbinenreiter
Mon Aug 11, 2014 8:45 am
Forum: MicroPython pyboard
Topic: nRF24
Replies: 4
Views: 2881

nRF24

I just started to work on the nRF24, but I got stuck and then I remembered - the nRF24 was one of the stretch goals!
Has there been any work done on it yet?

I also found a module for the raspi - https://github.com/r3ek0/python-nrf24

I'm gonna try to port it/use it as bluprint.
by Turbinenreiter
Sun Aug 10, 2014 4:08 pm
Forum: General Discussion and Questions
Topic: Trying to use timers to avoid a blocking loop
Replies: 15
Views: 7176

Re: Trying to use timers to avoid a blocking loop

* do you really need the float() in the return of getTemp?

* try to print() what you want to return. does that work? I guess callbacks can't return stuff.

* maybe try to merge those two functions into one. maybe callbacks can't call other functions.
by Turbinenreiter
Sun Aug 10, 2014 10:22 am
Forum: Development of MicroPython
Topic: I2C Working
Replies: 8
Views: 4583

Re: I2C Working

I see this behavior all the time, some bytes get print as their ASCII equivalents. I use struct.unpack to get ints from those bytes and it doesn't care about the chars, returns correct numbers nevertheless. So you'd read 2 bytes at once and then unpack it. i.E. ax = struct.unpack('<h',i2c.mem_read(2...
by Turbinenreiter
Fri Aug 08, 2014 4:24 pm
Forum: Development of MicroPython
Topic: Library guidelines
Replies: 3
Views: 2165

Re: Library guidelines

What I do is to just create a Github repository and post links to the wiki and in the forum. See http://forum.micropython.org/viewtopic.php?f=5&t=226 However, maybe it would be a good idea to create an 'micropython-devlib' repository in the micropython account (https://github.com/micropython). Havin...