Search found 14 matches

by Boian Mitov
Thu Jul 13, 2017 9:36 pm
Forum: Maple & Maple mini etc
Topic: Fading PB1 (D33) LED
Replies: 9
Views: 327

Re: Fading PB1 (D33) LED

If you want to fully support the precission available in the stm32, that's 16 bits, the the function to use is pwmWrite(), and the duty cycle parameter can take a 16bit value. But then you will have code that only works on the this core. I do not know if you want to just create code compatible with...
by Boian Mitov
Wed Jul 12, 2017 9:02 pm
Forum: STM Nucleo boards
Topic: Is OUTPUT_OPEN_DRAIN supported
Replies: 15
Views: 358

Re: Is OUTPUT_OPEN_DRAIN supported

You realize that stm32duino.com isn't a commercial venture yes? You should read about its origins on the WIKI FAQ. You realize the users here aren't going to provide user support for your 23k users? Based on a quick look at your product, I doubt your users are the ideal candidates to be using any o...
by Boian Mitov
Wed Jul 12, 2017 8:05 pm
Forum: Maple & Maple mini etc
Topic: Fading PB1 (D33) LED
Replies: 9
Views: 327

Re: Fading PB1 (D33) LED

If you are using the libmaple based one, then pwmWrite should be what you look for. If you are using one of the other cores, then it depends what's implemented on them. I am not the end user of the libraries. I am adding support for (hopefully all) STM32 boards in Visuino. I am simply testing the f...
by Boian Mitov
Wed Jul 12, 2017 7:56 pm
Forum: STM Nucleo boards
Topic: Is OUTPUT_OPEN_DRAIN supported
Replies: 15
Views: 358

Re: Is OUTPUT_OPEN_DRAIN supported

o You could add the feature to the code yourself. If I add it it will be included in the official release? I am asking as I have about 23000 users of Visuino, according to the registration, and they all will need to have access to it. I am asking how to solve the problem for all users. This functio...
by Boian Mitov
Wed Jul 12, 2017 5:14 pm
Forum: Maple & Maple mini etc
Topic: Fading PB1 (D33) LED
Replies: 9
Views: 327

Re: Fading PB1 (D33) LED

I can control the LED On and Off. I am asking if I can control it with PWM with AnalogWrite. With the old library I can use analogWrite( PB1, AValue ) to dim the LED. This does not seem to work with the new library. Is PWM intended to still work on PB1? I need to know that so I can properly map the ...
by Boian Mitov
Wed Jul 12, 2017 5:09 pm
Forum: STM Nucleo boards
Topic: Is OUTPUT_OPEN_DRAIN supported
Replies: 15
Views: 358

Re: Is OUTPUT_OPEN_DRAIN supported

const uint8_t led_pin = 33; uint8_t led = 0; void setup() { pinMode(led_pin, OUTPUT_OPEN_DRAIN); } ... Does not work with the libraries installed from the board manager. I followed this instructions to install from the board manager: https://github.com/stm32duino/wiki/wiki/Boards-Manager You can see...
by Boian Mitov
Tue Jul 11, 2017 11:10 pm
Forum: STM Nucleo boards
Topic: Is OUTPUT_OPEN_DRAIN supported
Replies: 15
Views: 358

Re: Is OUTPUT_OPEN_DRAIN supported

Sorry, I was wrong, you should use: OUTPUT_OPEN_DRAIN see: https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/dd453357b337d5a888370f708eb304ecc6603ec9/STM32F1/cores/maple/io.h#L47 https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/6891e40546448afb03a63d9e7b1b60391098cd9e/STM32F1/cores...
by Boian Mitov
Tue Jul 11, 2017 9:25 pm
Forum: STM Nucleo boards
Topic: Programming Nucleo F302R8
Replies: 7
Views: 204

Re: Programming Nucleo F302R8

vargham wrote:
Tue Jul 11, 2017 5:24 am
> The closest board I see seems to be: Nucleo-64 / F303RE
The MCU must be exactly the same.
As you can see from my post the F303RE fails :-( .
I may have damaged the firmware on the board. How to update the Firmware?
by Boian Mitov
Mon Jul 10, 2017 11:12 pm
Forum: STM Nucleo boards
Topic: Is OUTPUT_OPEN_DRAIN supported
Replies: 15
Views: 358

Re: Is OUTPUT_OPEN_DRAIN supported

Does not work :-( C:\Users\mitov\AppData\Local\Temp\arduino_modified_sketch_780612\Blink.ino: In function 'void setup()': Blink:27: error: 'OUTPUT_OD' was not declared in this scope pinMode(LED_BUILTIN, OUTPUT_OD); ^ exit status 1 'OUTPUT_OD' was not declared in this scope Target "MapleMini F103CB" ...
by Boian Mitov
Mon Jul 10, 2017 7:14 pm
Forum: Maple & Maple mini etc
Topic: Fading PB1 (D33) LED
Replies: 9
Views: 327

Fading PB1 (D33) LED

I have switched from using the leaflabs to stm32duino for my Maple Mini. With the leaf I was able to control the LED on D33 with PWM: http://docs.leaflabs.com/static.leaflabs.com/pub/leaflabs/maple-docs/0.0.12/hardware/maple-mini.html#maple-mini-gpios Is this functionality available in the stm32duin...