Search found 11 matches
- Sat Mar 12, 2022 12:22 am
- Forum: Raspberry Pi microcontroller boards
- Topic: What's up with the Signal class?
- Replies: 4
- Views: 2898
Re: What's up with the Signal class?
OK, this post is tied to my original post about my dissatisfaction with the Signal class. The Signal class 'tries' to be helpful by providing what appears to look like a super-class of Pin with the ability to change the sense of the pins status, based on whether the pin is a PULL_UP or PULL_DOWN inp...
- Mon Mar 07, 2022 5:46 am
- Forum: Raspberry Pi microcontroller boards
- Topic: What's up with the Signal class?
- Replies: 4
- Views: 2898
What's up with the Signal class?
OK, my experience with the Signal class is only with MicroPython 1.18 for the RP2 (Pico Pi). I looked at the Signal class for simplifying a de-bounce circuit that I have made, which currently only works for Pin inputs that are pulled up. I want to integrate the code that I have, which is also integr...
- Fri Mar 04, 2022 6:51 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Sized Integers
- Replies: 1
- Views: 2017
Sized Integers
I am trying to discover how to declare an integer in MicroPython as a particular size (or signed type).
I'd like the capability to do these types (expressed in 'C' or "C++' notation:
How is this done in MicroPython 1.18?
I'd like the capability to do these types (expressed in 'C' or "C++' notation:
Code: Select all
int_8
uint_8
int_16
uint_16
int_32
uint_32
- Mon Feb 28, 2022 4:02 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Some questions about Thonny
- Replies: 8
- Views: 7128
Re: Some questions about Thonny
On the same day that I discovered that turning off RansomWare Protection on MalAware Bytes fixed my serial port problem, I got a notice to upgrade to MalAware Bytes V 4.5.4. After installing the new version, I turned on RansomWare Protection, and now there is no interference vebtwen this setting and...
- Sat Feb 26, 2022 4:21 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Some questions about Thonny
- Replies: 8
- Views: 7128
Re: Some questions about Thonny
OK, I have come to a final resolution of this COM communications problem. It happened when I got a new Pico Pi and I tried to get it to respond. After loading the UF2 file for MicroPython 1.18, I had the same problem (on the port I thought no longer had the failed to connect problem) and I found tha...
- Sat Feb 19, 2022 6:34 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Switch debounching
- Replies: 2
- Views: 1669
Switch debounching
I have a breadboard kit for my Pico Pi. On this breadboard kit there are four switches with pull-up resistors, four LEDs with current limit resistors, a buzzer, and terminal boards for 5V, 3V3 and ground. Every Pico Pi pin is brought out to a new set of pins that are easily accessible. On my breadbo...
- Thu Feb 17, 2022 6:47 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Micropython String
- Replies: 4
- Views: 3736
Micropython String
I was looking at print formatting with MicroPython and RP2. Specifically I was trying to use: print("foo".ljust(50)) I was unable to do thing because the REPL reports that there is no method ljust for str. And, sure enough, in MicroPython 1.18 ljust (and rjust) do not exist as methods to str. help (...
- Fri Feb 11, 2022 6:56 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Callback fuzziness???
- Replies: 1
- Views: 1582
Callback fuzziness???
I am trying to understand the meaning of the following 'tip' for the building of interrupt handling code. The following tip can be found at: https://docs.micropython.org/en/latest/reference/isr_rules.html Where an ISR returns multiple bytes use a pre-allocated bytearray. If multiple integers are to ...
- Fri Feb 11, 2022 5:22 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Some questions about Thonny
- Replies: 8
- Views: 7128
Re: Some questions about Thonny
Well, I seem to have resolved the problem, but not in a way that makes any sense to me. I simply moved my USB cable to another USB port on my laptop. When I did this, everything went back to normal. And...none of the parameters for my COM port in Device Manager changed. I'm still at COM 4. I also tr...
- Wed Feb 09, 2022 6:52 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Some questions about Thonny
- Replies: 8
- Views: 7128
Some questions about Thonny
I have Version 3.3.13 of Thonny and MicroPython v1.18 on 2022-01-17; Raspberry Pi Pico with RP2040 Type "help()" for more information. I have done quite a bit of development with it in the past week or so. First Question: I was investigating the machine.RTC class. In the REPL window, I did the follo...