Search found 11 matches
- Wed Nov 09, 2022 8:44 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3227134
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
1. Why doesn't my restart sensor code work? from sht30 import SHT30 restartsensor = SHT30() restartsensor.reset() Hello Rissy, even when reseting the sensor you need to initialize it with i2c: from machine import I2C, Pin from sht30 import SHT30 i2c=I2C(0, sda=Pin(4), scl=Pin(5)) restartsensor = SH...
- Tue Nov 08, 2022 8:10 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
- Replies: 74
- Views: 3227134
Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Hello Rissy, remove (or comment out) all lines and from the library. You may also clean up semicolons at end of lines
Code: Select all
self.i2c.start()
Code: Select all
self.i2c.stop()
- Tue Jun 07, 2022 12:33 pm
- Forum: Programs, Libraries and Tools
- Topic: PC python script to run mpremote commands
- Replies: 6
- Views: 28308
Re: PC python script to run mpremote commands
Maybe. I've tried and did not succeeded. IMHO mpremote is not intended to be called as a module and pyboard.py should be used instead. For my use case, the method described was sufficient.
- Tue Jun 07, 2022 8:14 am
- Forum: Programs, Libraries and Tools
- Topic: PC python script to run mpremote commands
- Replies: 6
- Views: 28308
Re: PC python script to run mpremote commands
Hello, I'm using it this way def _call_mpremote(self, args): args.insert(0, 'mpremote') proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) try: out, err = proc.communicate(timeout=None if self._timeout in (None, 0) else self._timeout) # etc. where args are argum...
- Fri Jan 07, 2022 12:51 pm
- Forum: Programs, Libraries and Tools
- Topic: mpremote & pyboard.py: some questions
- Replies: 0
- Views: 20639
mpremote & pyboard.py: some questions
Hello, First I would like to write few words why am I asking. Some (short) time ago I spoted Jupyter Notebook and I've found it quite usefull ;) I tried to find a way to use it with micropython. I've found two or three kernels, but either they didn't work at all or they were so clumsy that I decided...
- Fri Dec 10, 2021 8:59 am
- Forum: Other Boards
- Topic: [STM32H750] Working board definitions and some questions
- Replies: 13
- Views: 156351
Re: [STM32H750] Working board definitions and some questions
Hello SunWukong, try to flash firmware1.bin using the instructions on the page https://github.com/WeActTC/MiniSTM32H7x ... PI_Flasher. It worked well for me
- Mon Sep 13, 2021 9:09 am
- Forum: Other Boards
- Topic: [STM32H750] Working board definitions and some questions
- Replies: 13
- Views: 156351
Re: [STM32H750] Working board definitions and some questions
It looks good, thanksJohnieBraaf wrote: ↑Mon Sep 13, 2021 8:50 amYou could also create a .bat script for it that calls the STM32_Programmer_CLI.exe
- Mon Sep 13, 2021 8:24 am
- Forum: Other Boards
- Topic: [STM32H750] Working board definitions and some questions
- Replies: 13
- Views: 156351
Re: [STM32H750] Working board definitions and some questions
Is this define even necesarry? If I do not use the define, the value of 3 is used (see qspi.c in the stm32 port directory). Do you think that value is better? With regards to flashing, programming. If you use STM32Programmer it's easier to just use the hex or dfu file. Otherwise you weed need to fl...
- Mon Sep 13, 2021 7:17 am
- Forum: Other Boards
- Topic: [STM32H750] Working board definitions and some questions
- Replies: 13
- Views: 156351
Re: [STM32H750] Working board definitions and some questions
I've forgotten to mention how the firmware is downloaded to the board. First I've tried to use mboot. It compiled, I've flashed it and it ran. But flashing DFU was not possible - there was an error clearing the main memory. So i've abandonned the idea to use mboot (if somebody knows how make it work...
- Sun Sep 12, 2021 8:42 pm
- Forum: Other Boards
- Topic: [STM32H750] Working board definitions and some questions
- Replies: 13
- Views: 156351
[STM32H750] Working board definitions and some questions
Hello, I own some STM32H750 MCU based boards and I've found that there is no working board definition available. So I decided to write one by myself. It was not an easy task but finaly I ended having two working boards ;) They are available here and here . I'll describe main points for those who may...