Giter VIP home page Giter VIP logo

Comments (3)

FASTSHIFT avatar FASTSHIFT commented on July 21, 2024 2

感谢您提交的BUG,Servo库的错误已修复。
IMG_20190509_133730

频率错误的原因是因为STM32的TIM1的外设时钟是挂在APB2上的,而TIM2-TIM5的时钟是挂在APB1上的,APB1的时钟频率只有APB2的一半。而Servo库默认的模式是APB2,所以使用TIM2-TIM5输出PWM的时候,输出的频率只有TIM1的一半。
DJT D(HWFNYHF2{D~N%~8FQ

from arduino-for-keil.

FASTSHIFT avatar FASTSHIFT commented on July 21, 2024 1

感谢您的支持@EJDRONE
我也会继续优化提升兼容性

from arduino-for-keil.

EJDRONE avatar EJDRONE commented on July 21, 2024

十分感谢大神,经测试,已经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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.