Git Product home page Git Product logo

Comments (4)

nopnop2002 avatar nopnop2002 commented on July 2, 2024
void STM32_TFT_8bit::write8(uint8_t bytes) {
    TFT_DATA->ODR = bytes;
}

Is this code valid for all STM32?

My code should work on STM32F0/F1/F2/F3/F4/F7/G0/G4/H5/H7/L0/L1/L4/L5/U5/WB/WL.

from arduino-stm32-8bittft.

liyang5945 avatar liyang5945 commented on July 2, 2024

I search the CMSIS header files, every STM32 MCU both have GPIO ODR registor, so it works for all.
use this method, the lcd data pin have to connent to a GPIO port 0-7pin and rest of the GPIO pin 8-15 can't be used

2023_06_22_00_16_19

2023_06_22_00_16_39

from arduino-stm32-8bittft.

nopnop2002 avatar nopnop2002 commented on July 2, 2024

I search the CMSIS header files, every STM32 MCU both have GPIO ODR registor, so it works for all.

Thank you for your research.

use this method, the lcd data pin have to connent to a GPIO port 0-7pin and rest of the GPIO pin 8-15 can't be used

I understand

Your proposal is very attractive.

I will consider whether to accept your proposal over the weekend.

from arduino-stm32-8bittft.

nopnop2002 avatar nopnop2002 commented on July 2, 2024

Changed from LL_GPIO_WriteOutputPort function to port output data (ODR) register.

You can toggle the behavior with this definition.

https://github.com/nopnop2002/Arduino-STM32-8bitTFT/blob/master/Arduino-STM32-8bitTFT.h#L59

thank you.

from arduino-stm32-8bittft.

Related Issues (10)

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.