Search found 647 matches
- Tue Jan 27, 2015 1:18 am
- Forum: Hardware Projects
- Topic: OpenMV Cam went live on Kickstarter today
- Replies: 4
- Views: 6237
- Fri Jan 23, 2015 8:52 pm
- Forum: General Discussion and Questions
- Topic: CCM data RAM of STM32F405
- Replies: 8
- Views: 8998
Re: CCM data RAM of STM32F405
One issue is that machine code cannot be executed from CCM, so it can only hold bytecode functions. CCM could hold the stack, freeing up some of the main RAM. On the user side of things, could add an option to pyb.mount to remount the flash readonly. Doing this would then repurpose the CCM for heap ...
- Thu Jan 22, 2015 12:43 pm
- Forum: Hardware Projects
- Topic: Driver for Adafruit GSM FONA module
- Replies: 3
- Views: 12634
Driver for Adafruit GSM FONA module
This topic is to discuss development of a uPy driver for the Adafruit FONA module, using the SIM800L GSM chip. See http://www.adafruit.com/products/1963 . I have managed so far to send an SMS from the pyboard using this module. Here are some notes how to do it: 1. Insert SIM card, connect charged Li...
- Tue Jan 20, 2015 9:02 am
- Forum: General Discussion and Questions
- Topic: Convert float to hex string
- Replies: 5
- Views: 16147
Re: Convert float to hex string
Great, that works. And if I study really hard I might someday even understand why… The struct packing of floats in uPy should work, but for some reason is not fully implemented even though all the code is there (as you can see by the fact that the array packing works!). So your original piece of co...
- Tue Jan 20, 2015 12:59 am
- Forum: General Discussion and Questions
- Topic: Convert float to hex string
- Replies: 5
- Views: 16147
Re: Convert float to hex string
Try:
Code: Select all
import array
bytes(array.array('f', [17.5]))
hex(struct.unpack('<I',bytes(array.array('f', [17.5]))))
- Sun Jan 18, 2015 6:23 pm
- Forum: Development of MicroPython
- Topic: Development Stats
- Replies: 3
- Views: 3355
Re: Development Stats
Right. It's easy to artificially enhance the numbers with false issues. And the last thing we want is undue pressure to fix things fast. upy requires crafting, which takes time.
- Sun Jan 18, 2015 11:17 am
- Forum: Development of MicroPython
- Topic: Development Stats
- Replies: 3
- Views: 3355
Re: Development Stats
Apparently it's possible to get badges from issuestats and use them in the README.md, like the travis "build passing" badge.
http://www.issuestats.com/github/microp ... style=flat
http://www.issuestats.com/github/microp ... style=flat
http://www.issuestats.com/github/microp ... style=flat
http://www.issuestats.com/github/microp ... style=flat
- Sat Jan 17, 2015 10:34 pm
- Forum: Development of MicroPython
- Topic: Converting callback result stream to iterator/generator/coro
- Replies: 7
- Views: 7928
Re: Converting callback result stream to iterator/generator/
That's actually primary trait - Lua allows to yield from called functions, and then it allows to use yield anywhere (including in callbacks), which saves from the need to know whom to .send value instead of yield with implicit destination. And Lua implements it by essentially having support for thr...
- Sat Jan 17, 2015 8:04 pm
- Forum: Hardware Projects
- Topic: Navigation pyskin - Board Design RFC
- Replies: 46
- Views: 39880
Re: Navigation pyskin - Board Design RFC
Looks good! Did you fix/calibrate the magnetometer? I see that the RTIMULib https://github.com/richards-tech/RTIMULib is MIT licensed (and even has CPython bindings!). I doubt it could be ported to pure Python and still run at a high framerate, so we could think about importing it as a C library int...
- Sat Jan 17, 2015 6:54 pm
- Forum: MicroPython pyboard
- Topic: Maximum number of PWM or how to get more
- Replies: 27
- Views: 22619
Re: Maximum number of PWM or how to get more
Here is what you'll need to use to get 24 PWM: X1 TIM5 CH1 X2 TIM5 CH2 X3 TIM5 CH3 (or TIM9 CH1) X4 TIM5 CH4 (or TIM9 CH2) X5 DAC(1) X6 DAC(2) X7 TIM13 CH1 X8 TIM14 CH1 X9 TIM4 CH1 X10 TIM4 CH2 Y1 TIM8 CH1 Y2 TIM8 CH2 Y3 TIM4 CH3 (or TIM10 CH1) Y4 TIM4 CH4 (or TIM11 CH1) Y6 TIM1 CH1 negated Y7 TIM12...