Comments (3)
频率错误的原因是因为STM32的TIM1的外设时钟是挂在APB2上的,而TIM2-TIM5的时钟是挂在APB1上的,APB1的时钟频率只有APB2的一半。而Servo库默认的模式是APB2,所以使用TIM2-TIM5输出PWM的时候,输出的频率只有TIM1的一半。
from arduino-for-keil.
感谢您的支持@EJDRONE
我也会继续优化提升兼容性
from arduino-for-keil.
十分感谢大神,经测试,已经OK!
我今天试了一下直接使用U8G2库,会报错,主要是两个方面的错误:
一个是yield()函数未定义,因为U8x8lib.cpp文件的u8x8_gpio_and_delay_arduino()函数会调用到yield()函数,这个yield()我查了一下,声明在标准arduino中的Arduino.h里,而您的Arduino.h是没有这个函数的,当然我没去弄清楚这个函数的作用,所以就把U8G2库里对yield()的调用注释掉了,错误消失。
第二个是一些函数中变量声明的顺序的错误,我调整U8G2库里的声明顺序后,错误消失。
剩下的一些编译警告我未作处理,但烧进STM32F407后,是可以正常显示的,包括使用SPI 1带两块屏,没看出问题,当然我对我所做的这些改动后果未知,按原则来说也不应该改库,只是给您一个报告,我将会继续使用您的项目做实验,会继续提出BUG
from arduino-for-keil.
Related Issues (20)
- [user contribution] Libraries - Tested HOT 3
- sd卡读写问题 HOT 3
- 移植STM32F107出错 HOT 2
- Low Power Mode [Help nedeed] HOT 2
- 请教一下,如何移植到正点原子的F407或F429开发板里去? HOT 4
- 移植库文件报错 HOT 2
- Some ERROR in Print.h..
- STM32SD 移植失败,补了很多路径也不行 HOT 1
- STM32用此包导致芯片锁死 HOT 2
- BMP280
- Keil5不能引用Arduino库中的Class HOT 2
- 编译无法使用C++11 arduino的很多库在头文件中就给成员赋值了 导致出错 这个问题怎么解决 HOT 8
- 调试IIC时,初始化出不来, HOT 1
- 使用F401RC仿真运行,为什么不停的复位? HOT 2
- 按照教程移植,但是导入库失败 HOT 4
- 移植到其他平台问题 HOT 2
- 我在其他地方找不到答案, 为什么不是只编译修改过的文件 HOT 1
- STM32F103RC移植报错 HOT 9
- stm32f103IIC读取mpu9250失败 HOT 1
- 对FastLED库的支持!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-for-keil.