Search found 3821 matches
- Sun Oct 26, 2014 5:15 pm
- Forum: General Discussion and Questions
- Topic: floats in timer callback cause MemoryError?
- Replies: 8
- Views: 7276
Re: floats in timer callback cause MemoryError?
Yes, this is expected behaviour. Currently, you're not allowed to allocate memory inside an interrupt callback. Unfortunately, doing any type of floating point requires allocating a float. If you also execute: import micropython micropython.alloc_emergency_exception_buf(100) then you'll get more det...
- Sun Oct 26, 2014 3:28 am
- Forum: General Discussion and Questions
- Topic: Internal flash capacity
- Replies: 4
- Views: 4869
Re: Internal flash capacity
It would probably be possible to put a read-only filesystem at the end of flash (or somewhere in flash).
We can't make it writable since we don't have enough RAM to rewrite the flash pages.
We can't make it writable since we don't have enough RAM to rewrite the flash pages.
- Sun Oct 26, 2014 2:38 am
- Forum: General Discussion and Questions
- Topic: Internal flash capacity
- Replies: 4
- Views: 4869
Re: Internal flash capacity
Currently, the internal flash size is 112K. This number is based on the nature of flash and the block sizes available. The flash is laid out as: 4 x 16K blocks 1 x 64K block 7 x 128K blocks The first of the 16K blocks is where the reset and interrupt vectors are located. The remaining 3 x 16 and 1 x...
- Fri Oct 24, 2014 3:53 pm
- Forum: General Discussion and Questions
- Topic: Extending built-in LCD class problem: Can't specify X/Y pos.
- Replies: 1
- Views: 2982
Re: Extending built-in LCD class problem: Can't specify X/Y
I think that its currently not possible to subclass builtin classes.
There is already an issue in github: https://github.com/micropython/micropython/issues/664
I think for the short term, you probably need to use membership rather than inheritance.
There is already an issue in github: https://github.com/micropython/micropython/issues/664
I think for the short term, you probably need to use membership rather than inheritance.
- Fri Oct 24, 2014 3:42 pm
- Forum: General Discussion and Questions
- Topic: New starter to uPython board
- Replies: 9
- Views: 7563
Re: New starter to uPython board
Hello! I think I'll introduce myself first, my name is Cooper and I am engineering graduate with an interest in python and and microcontrollers. I have a few questions about the board: 1) Is it possible to boost the speed of the ADC? Our experiments seem to indicate a speed of around 46kHz but the ...
- Fri Oct 24, 2014 7:32 am
- Forum: MicroPython pyboard
- Topic: Bluetooth HC05
- Replies: 15
- Views: 18125
Re: Bluetooth HC05
I didn't see this mentioned, so I figured its worth being explicit. You'll want to connect the TX pin from the HC05 to the RX pin on the pyboard, and the RX pin from the HC05 to the TX pin on the pyboard. You'll also need to connect GND from the HC05 to ground on the pyboard. And if you're plugged i...
- Fri Oct 24, 2014 6:52 am
- Forum: MicroPython pyboard
- Topic: corrupted board files? [solved]
- Replies: 6
- Views: 7573
Re: corrupted board files?
You can reset the file system by following the procedure under "Boot Modes on this page: http://micropython.org/doc/general You want the Green and Orange LED together. You may want to try it by plugging the pyboard into a USB charger. Then once you've reset the filesystem, unplug it from the charger...
- Wed Oct 22, 2014 9:11 pm
- Forum: General Discussion and Questions
- Topic: Basic LCD driver class (HD44780)
- Replies: 4
- Views: 9299
Re: Basic LCD driver class (HD44780)
I also have some code over here: https://github.com/dhylands/python_lcd/tree/master/lcd It supports 4-bit and 8-bit, as well as some of the I2C based LCD backpacks. The lcd.py is the generic code. The pyb_gpio_lcd.py and pyb_i2c_lcd.py create classes derived from LcdApi that takes care of actually t...
- Wed Oct 22, 2014 9:07 pm
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24097
Re: Python DFU util
@blmorris: There is a pyb.bootloader() command so that you don't even need the DFU jumper any more (except in rare cases).
- Wed Oct 22, 2014 5:39 am
- Forum: General Discussion and Questions
- Topic: Android device as UI to pyboard
- Replies: 8
- Views: 9510
Re: Android device as UI to pyboard
Great info and search terms, including Dan's pic18_serial_io project, thanks to you both. Suppose I make a virtual serial link from pyboard USB port to RPi USB (i.e. without FTDI interface). AIUI I would program the pyboard to boot in CDC+MSC mode, run a 'main' script to sample sensors on a timer i...