- 21 Apr, 2014 3 commits
-
-
Damien George authored
Instead of pyb.switch() as a function, it's more consistent (with respect to all the other modules and peripherals) to have pyb.Switch() create a switch object. This then generalises to having multiple switches. Call the object to get its state. Use sw.callback to set the callback function for when the switch is pressed.
-
Damien George authored
Simple but functional timer control. More sophistication will eventually be added, or for now just use direct register access :) Also added pyb.freq() function to get MCU clock frequencies.
-
Damien George authored
It's really a UART because there is no external clock line (and hence no synchronous ability, at least in the implementation of this module). USART should be reserved for a module that has "S"ynchronous capabilities. Also, UART is shorter and easier to type :)
-
- 19 Apr, 2014 3 commits
-
-
Damien George authored
Also some updates to compile with latest changes to core py.
-
Damien George authored
-
Damien George authored
-
- 18 Apr, 2014 4 commits
-
-
Damien George authored
It's Light Emitting Diode, so should be LED.
-
Damien George authored
-
Damien George authored
-
Damien George authored
This is an attempt to clean up the Micro Python API on the pyboard. Gpio functionality is now in the Pin object, which seems more natural. Constants for MODE and PULL are now in pyb.Pin. Names of some classes have been adjusted to conform to CamelCase. Other miscellaneous changes and clean up here and there.
-
- 16 Apr, 2014 1 commit
-
-
Damien George authored
-
- 14 Apr, 2014 1 commit
-
-
Damien George authored
-
- 13 Apr, 2014 1 commit
-
-
Damien George authored
Pass a single parameter (doesn't matter what): pyb.info(1), will dump the GC alloc table.
-
- 05 Apr, 2014 1 commit
-
-
Damien George authored
Towards addressing issue #424. Had a small increase to ROM usage (order 60 bytes).
-
- 30 Mar, 2014 2 commits
-
-
Damien George authored
Pretty much everyone needs to include map.h, since it's such an integral part of the Micro Python object implementation. Thus, the definitions are now in obj.h instead. map.h is removed.
-
Damien George authored
Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID. Choice is made by an option in boot.py, with default being CDC+MSC. HID+MSC is not currently supported, but should be easy to implement. Boot up now has ability to change the reset mode: hold down USR switch while booting and LEDs will count from 1 to 7 to indicate the boot mode. Release USR when correct mode is selected. Current modes are 1 (normal boot), 2 (safe mode), 3 (reset FS mode).
-
- 29 Mar, 2014 2 commits
-
-
Damien George authored
The HID device must appear before the CDC in order for both to work at the same time. Whilst the code is working, it's not currently used.
-
Damien George authored
Adds readline_init() to clear readline history on soft reset. Addresses issue #387.
-
- 25 Mar, 2014 4 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
-
- 24 Mar, 2014 4 commits
-
-
Damien George authored
-
Dave Hylands authored
Added support for the ADC channels and mappings to make_pins.py I'm not sure if the hal properly deals with the channel 16/18 differences between the 40x and 42x. It seems to deal with it partially. This particular aspect will need testing on a 42x or 43x.
-
Damien George authored
-
Damien George authored
-
- 23 Mar, 2014 1 commit
-
-
Damien George authored
-
- 22 Mar, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- 20 Mar, 2014 1 commit
-
-
Damien George authored
-
- 17 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Just low-level read/write support. No filesystem yet.
-
- 16 Mar, 2014 1 commit
-
-
Dave Hylands authored
-
- 15 Mar, 2014 2 commits
-
-
Damien George authored
-
Dave Hylands authored
-
- 14 Mar, 2014 1 commit
-
-
Dave Hylands authored
Tweaked a couple of the USB files to compile if neither dev nor host was defined. Tested on netduiono plus 2 and stm32f4discovery boards
-
- 13 Mar, 2014 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 08 Mar, 2014 1 commit
-
-
Damien George authored
-