Search found 14 matches
- Mon Mar 02, 2015 5:03 pm
- Forum: General Discussion and Questions
- Topic: LCD connected check
- Replies: 6
- Views: 7278
Re: LCD connected check
Good evening, Thanks for the hint - your post confirms me that I'm not simply making a stupid mistake. Unfortunately I'm not fit enough to play around and follow up your comments - That's why the pyboard is so attractive for me - being able to use my normal python knowlege and being able to program ...
- Sun Mar 01, 2015 5:42 pm
- Forum: General Discussion and Questions
- Topic: LCD connected check
- Replies: 6
- Views: 7278
Re: LCD connected check
HI Hansel, I had in my script a delay of 2 seconds for this reason, but it turns out that this is not sufficient. To see how much delay I need, I've timed it: import pyb pyb.LED(3).on() # indicate we are waiting for switch press import mpr121 touchbuttons = mpr121.MPR121(pyb.I2C(2, pyb.I2C.MASTER)) ...
- Sun Mar 01, 2015 9:33 am
- Forum: General Discussion and Questions
- Topic: LCD connected check
- Replies: 6
- Views: 7278
Re: LCD connected check
Hi Dave, Thanks a lot - once again, you helped me a lot! I wonder if I may bother you (or another pyboard-expert) with another somewhat related issue: - I have the LCD-skin attached in the Y-configuration - I want the board to boot into different modes (+ do some other stuff) depending on if a butto...
- Sat Feb 28, 2015 6:50 pm
- Forum: General Discussion and Questions
- Topic: LCD connected check
- Replies: 6
- Views: 7278
LCD connected check
Good evening, Playing with my shiny new LCD skin, I wonder if there is a way for a script to actually check if a LCD skin is attached or not. If it's not attached, the a class instance can be instanciated without problem and functions like .write() be called as well without error. My motivation: Aft...
- Sat Dec 20, 2014 9:45 am
- Forum: General Discussion and Questions
- Topic: Timer callback ADC memory error
- Replies: 8
- Views: 9127
Re: Timer callback ADC memory error
Thanks again!
This sounds quite interesting. I knew that my programming skills are still quite limited - I'll have to have a look into this. Do you happen to know of a simple example for this/website explaining this concept further?
This sounds quite interesting. I knew that my programming skills are still quite limited - I'll have to have a look into this. Do you happen to know of a simple example for this/website explaining this concept further?
- Fri Dec 19, 2014 8:06 pm
- Forum: General Discussion and Questions
- Topic: Timer callback ADC memory error
- Replies: 8
- Views: 9127
Re: Timer callback ADC memory error
Thanks for the hint! While this might get me one step further, I'll not get around using floats at some point further in the routine. I see some projects using the pyboard to e.g. control multicopter - how do they manage this kind of stuff? I'd had thought that they use some timers to regualrily che...
- Fri Dec 19, 2014 6:24 pm
- Forum: General Discussion and Questions
- Topic: Timer callback ADC memory error
- Replies: 8
- Views: 9127
Re: Timer callback ADC memory error
Hi, Thanks a lot for the fast reply and this valuable hint!! - I manage to read the adc from within the callback function! Unfortunately, this immediately triggers the next problem.... The memory allocation constraint seems to me to be quite heavy and renders timers almost useless as it now seems th...
- Thu Dec 18, 2014 10:35 pm
- Forum: General Discussion and Questions
- Topic: Timer callback ADC memory error
- Replies: 8
- Views: 9127
Timer callback ADC memory error
Good evening! I'm experiencing a strange behaviour, wher I'd like to ask for your help! I want to start a timer which triggers a measurment with the ADC every second. I run the following code on the board: import pyb from pyb import Pin, ADC, Timer def getstrength(tmp): import pyb from pyb import Pi...
- Tue Dec 09, 2014 9:57 pm
- Forum: General Discussion and Questions
- Topic: UART - sending from pyboard to PC
- Replies: 17
- Views: 30337
Re: UART - sending from pyboard to PC
Great! Thanks a lot, this did it! Problem solved!
Knowing it now, it seems so obvious....
Knowing it now, it seems so obvious....
- Mon Dec 08, 2014 9:13 pm
- Forum: General Discussion and Questions
- Topic: UART - sending from pyboard to PC
- Replies: 17
- Views: 30337
Re: UART - sending from pyboard to PC
Hi Dave, Thanks for all your hints!! - unfortunately this is not the issue as well (I've tried all variables everywherer..:) Maybe I failed to explain the problem correctly: How do I send information from my pyboard to a program running on my PC (the latter being written in python, of course...). I ...