You could try this library: https://github.com/PaulStoffregen/OneWire
I already use it and it works.
Search found 1754 matches
- Mon May 29, 2023 3:46 pm
- Forum: General discussion
- Topic: Can't Work with DS18B20 with STM blue Pill
- Replies: 7
- Views: 898
- Mon May 22, 2023 8:15 am
- Forum: General discussion
- Topic: TIM2 PWM newbie needs help with bare metal code
- Replies: 26
- Views: 7759
Re: TIM2 PWM newbie needs help with bare metal code
You should pay attention of 2 things: 1- ino is converted in cpp so all handler have to be prefixed with extern "C" 2- Timer irq handler are already defined by the core to use within Arduino API. So you have to disable this usage to be able to define your own one. To achieve this you can s...
- Mon May 22, 2023 8:10 am
- Forum: IDE's
- Topic: Blink uses 97% of program storage space
- Replies: 6
- Views: 6799
Re: Blink uses 97% of program storage space
You probably used STM32 core version 1.x before. Now 2.x provides access to all peripherals for all pins which increase the size in flash.
Anyway as stated before you can reduce this size using some customization.
Anyway as stated before you can reduce this size using some customization.
- Sat May 20, 2023 4:44 pm
- Forum: IDE's
- Topic: Blink uses 97% of program storage space
- Replies: 6
- Views: 6799
Re: Blink uses 97% of program storage space
You can do some optimization to reduces spaces depending of your needs: https://github.com/stm32duino/Arduino_Core_STM32/wiki/HAL-configuration#example-of-blinkino-for-nucleo-l031k6-with-32768-bytes-of-flash-and-8192-bytes-of-ram In your case you should not disable SPI and optimizes SPI pinmap array...
- Fri May 19, 2023 9:09 am
- Forum: General discussion
- Topic: Reserve last page of Flash for virtual EEPROM
- Replies: 2
- Views: 629
Re: Reserve last page of Flash for virtual EEPROM
Simpliest way would be to define in a boards.local.txt a new entry for the board and name it with EE: `3dprinter.menu.pnum.EBB42_V1_1_EE.upload.maximum_size=130048` Like this you will have only to select the one you want. Or you can add a new option in the 3D printer menu to set the correct upload_m...
- Thu May 18, 2023 11:26 am
- Forum: General discussion
- Topic: Serial port part add RS485 chip DE pin control
- Replies: 6
- Views: 1776
- Mon May 15, 2023 9:07 am
- Forum: USB bootloader
- Topic: Issue Pushing Updated Code to STM32 Black Pill Board in Arduino IDE
- Replies: 1
- Views: 3365
Re: Issue Pushing Updated Code to STM32 Black Pill Board in Arduino IDE
You have to enable USB CDC support.
- Fri May 12, 2023 2:44 am
- Forum: General discussion
- Topic: hard i2c vs soft i2c
- Replies: 2
- Views: 1748
Re: hard i2c vs soft i2c
It uses hardware.
- Thu May 11, 2023 4:22 pm
- Forum: General discussion
- Topic: No Port & Permission denied: macOS
- Replies: 2
- Views: 749
Re: No Port & Permission denied: macOS
Set executable permission. chmod a+x.
- Sat May 06, 2023 5:22 pm
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1624
Re: analogRead() Freezes the program
Generic uses HSI. So not an HSE issue.
https://github.com/stm32duino/Arduino_C ... lock.c#L22
https://github.com/stm32duino/Arduino_C ... lock.c#L22