Search found 15 matches

by csnol
Tue Sep 12, 2017 9:41 pm
Forum: Libraries & Hardware
Topic: library for 16x2
Replies: 5
Views: 1105

Re: library for 16x2

Use

Code: Select all

  lcd.begin(16,2);
by csnol
Mon Sep 11, 2017 11:42 am
Forum: STM32generic
Topic: change some files for stm32f030x6 series on STM32GENERIC
Replies: 3
Views: 200

Re: change some files for stm32f030x6 serials on STM32GENERIC

Update 1: STM32/cores/arduino/stm32/stm32_PWM.c No "HAL_RCC_GetPCLK2Freq()" in all stm32f0 series library. HAL_RCC_GetPCLK1Freq() used. pwm_config[i].port = variant_pin_list[pin].port; pwm_config[i].pin_mask = variant_pin_list[pin].pin_mask; + #if defined(STM32F0) // added by CSNOL + pwm_config[i]....
by csnol
Mon Sep 11, 2017 11:10 am
Forum: STM32generic
Topic: change some files for stm32f030x6 series on STM32GENERIC
Replies: 3
Views: 200

Re: change some files for stm32f030x6 serials on STM32GENERIC

Oh I see. but It's difficult for me. I almost don't use other STM32 chips more than 32 pins. I can't test other STM32F0 chips. No tested, No truth. you know. on the other hand, I just added F030F4 as a extension of ESP8285/66 in our Arduino Interest Group. I'm still a beginner now. So there's nothin...
by csnol
Sun Sep 10, 2017 1:58 pm
Forum: STM32generic
Topic: change some files for stm32f030x6 series on STM32GENERIC
Replies: 3
Views: 200

change some files for stm32f030x6 series on STM32GENERIC

Hi, Daniel. I don't know why I can't Pull request on Github for STM32GENERIC. So I've to show here. -------------------------- For weeks test : PWM/ I2C/ ADC/ UART/ I/O/ Interrupt... running well with NRF24L01, MPU6050, LCD5110, DHT11, ESP8266... Some functions updated for stm32F030x6 (tested on F03...
by csnol
Thu Sep 07, 2017 8:56 am
Forum: STM32generic
Topic: About analogWrite(PinX, 0), and analogWrite(Pinx, 255)
Replies: 3
Views: 171

Re: About analogWrite(PinX, 0), and analogWrite(Pinx, 255)

danieleff wrote:
Mon Sep 04, 2017 5:38 pm
Use pinMode(pin, OUTPUT) to turn off analogWrite(), after that you can use digitalWrite() for that pin.
@ danieleff,
analogWrite(PinX, 255) still is a problem. I'm trying to repair it.
by csnol
Thu Sep 07, 2017 8:39 am
Forum: USB to Serial adaptors
Topic: Problem programming Blue Pill using an Arduino Mega
Replies: 14
Views: 459

Re: Blue Pill - Error trying to program

If still error, maybe some wrong on PA9/PA10 of your BP. or use USB-TTL or STLINK try again.
by csnol
Thu Sep 07, 2017 8:31 am
Forum: USB to Serial adaptors
Topic: Problem programming Blue Pill using an Arduino Mega
Replies: 14
Views: 459

Re: Blue Pill - Error trying to program

I think you should use ST Flash Loader Demonstrator to upload the STM32F103-PC13.bin bootloader first.
Image
by csnol
Tue Sep 05, 2017 4:18 am
Forum: Off topic
Topic: Counterfeit F103s
Replies: 24
Views: 781

Re: Counterfeit F103s

I'm living in China. and bought more than 100 pieces STM32 chips from over 3 sellers. and Chinese forum, never found faked chips. But you will get used STM32 chips if you wanna pay lower price. The sellers must told you that the chips are used or refurbished chips. ( Free refund in 7 days on Taobao....
by csnol
Tue Sep 05, 2017 3:32 am
Forum: STM32generic
Topic: About analogWrite(PinX, 0), and analogWrite(Pinx, 255)
Replies: 3
Views: 171

Re: About analogWrite(PinX, 0), and analogWrite(Pinx, 255)

OK, Thank you! Daniel

Code: Select all

void closepump() {
analogWrite(pump,0);                // must be run first, otherwise you can't close the pump
pinMode(pump, OUTPUT);
digitalWrite(pump, LOW);
}
by csnol
Mon Sep 04, 2017 1:42 pm
Forum: STM32generic
Topic: About analogWrite(PinX, 0), and analogWrite(Pinx, 255)
Replies: 3
Views: 171

About analogWrite(PinX, 0), and analogWrite(Pinx, 255)

Hi, All, I'm testing a airpump system use analogWrite based STM32GENERIC. and my board was out of control on analogWrite(PinX, 0), and analogWrite(PinX, 255). If I wanna use digitalWrite function, do I have to disabled PWM function? Aren't they in ONE Boat(sketch :D ) at sametime? Thanks for any hel...