Search found 3821 matches
- Sun Nov 02, 2014 12:33 am
- Forum: General Discussion and Questions
- Topic: Low power mode pyb.wfi()
- Replies: 20
- Views: 18331
Re: Low power mode pyb.wfi()
Weird. This seems to be working for me. Although I haven't tried the exact same revision. >>> pyb.freq(168000000) >>> pyb.freq() (168000000, 168000000, 42000000, 84000000) >>> pyb.freq(84000000) >>> pyb.freq() (84000000, 84000000, 21000000, 42000000) >>> pyb.freq(42000000) >>> pyb.freq() (42000000, ...
- Sat Nov 01, 2014 10:27 pm
- Forum: General Discussion and Questions
- Topic: Low power mode pyb.wfi()
- Replies: 20
- Views: 18331
Re: Low power mode pyb.wfi()
Do you have recent firmware?
You can check the firmware version when you start the REPL. You should see a line something like this:
Anything earlier than Oct 5 doesn't have the proper frequency changing code.
You can check the firmware version when you start the REPL. You should see a line something like this:
Code: Select all
Micro Python v1.3.3-92-gfb765bc-dirty on 2014-10-22; PYBv1.0 with STM32F405RG
- Fri Oct 31, 2014 3:06 pm
- Forum: MicroPython pyboard
- Topic: module wiznet5k
- Replies: 6
- Views: 32860
Re: module wiznet5k
It looks like the module is called WIZnet5k and maybe you just need to import network ? I haven't used the networking stuff myself yet. This thread (which I dug up looking through git history): https://github.com/micropython/micropython/issues/876 should have some clues. I raised a github issue: htt...
- Fri Oct 31, 2014 2:45 pm
- Forum: Development of MicroPython
- Topic: Uart word-size and parity
- Replies: 6
- Views: 8449
Re: Uart word-size and parity
I filed an issue on github: https://github.com/micropython/micropython/issues/950
- Fri Oct 31, 2014 2:35 pm
- Forum: Development of MicroPython
- Topic: Multithreading or Multitasking?
- Replies: 2
- Views: 4307
Re: Multithreading or Multitasking?
A search in the forum using the word multithreading brings up this tthread: http://forum.micropython.org/viewtopic.php?f=2&t=281
- Fri Oct 31, 2014 2:32 pm
- Forum: General Discussion and Questions
- Topic: Timer callback and infinite loop not playing
- Replies: 5
- Views: 6451
Re: Timer callback and infinite loop not playing
In fact a global declaration in hundredmsTasks() is optional, and an error won't be thrown in its absence. This is because hundredmsTasks() reads hms before it tries to write to it, and Python's scoping rules ensure that, having failed to look up the name in the function's scope it looks in the glo...
- Fri Oct 31, 2014 2:24 pm
- Forum: General Discussion and Questions
- Topic: Locking down python source.
- Replies: 25
- Views: 22711
Re: Locking down python source.
I have a possible commercial project which would be a good fit for a board. I know this goes agasint the grain of the open source foundations, but my client would lilkey insist the there is no source code visible on the system. Reading the kickstarter posts, I can see there are native source emitte...
- Fri Oct 31, 2014 12:15 am
- Forum: MicroPython pyboard
- Topic: Logging data to file on SD-card
- Replies: 5
- Views: 18093
Re: Logging data to file on SD-card
What's happening (when pyboard and host are both seeing /sd) is that the host thinks it has exclusive access to the media. So it will read in stuff from the disk, probably the root directory, and cache it in memory. The pyboard then comes along, and it also thinks that it has exclusive access to the...
- Fri Oct 31, 2014 12:05 am
- Forum: General Discussion and Questions
- Topic: Timer callback and infinite loop not playing
- Replies: 5
- Views: 6451
Re: Timer callback and infinite loop not playing
You need to add a couple of global statements. def hmsInt(): pyb.LED(1).toggle() # orange hmsFlag = True In this version, hmsFlag is a local variable to the hmsInt function. If you change it to: def hmsInt(): global hmsFlag pyb.LED(1).toggle() # orange hmsFlag = True then it will modify the global h...
- Wed Oct 29, 2014 10:57 pm
- Forum: Hardware Projects
- Topic: some modules: PID, pulse density mod, MAX6675,...
- Replies: 5
- Views: 11982
Re: some modules: PID, pulse density mod, MAX6675,...
Cool - I've been thinking of making a reflow oven using micropython as the temperature controller.