-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is 'STM32F103C8' 'digitalWrite' and 'digitalRead' possible in FAST mode? #927
Comments
Hi
|
Thank you. Is there a method using 'digitalRead'? |
I think that the syntax seems to be the similar, but I never need a "fast" digitalRead() in my projects. |
use: uint16_t value = *portInputRegister(pin) & digitalPinToBitMask(pin); if value == 0 then pin is "low", otherwise pin is "high". |
@stevstrong code : error : |
then try: uint16_t value1 = portInputRegister(pin7) & digitalPinToBitMask(pin7); |
code : Thank you. |
It doesn't work. code: |
What exactly do you mean "it doesn't work"? Which part does not work? |
@SeongJongKwak |
Is 'STM32F103C8' 'digitalWrite' and 'digitalRead' possible in FAST mode?
[Same article, forum]
https://www.stm32duino.com/viewtopic.php?t=2401
hello.
[Status]
In the case of Arduino (AVR), there are the following libraries.
https://www.arduinolibraries.info/libra ... write-fast
'digitalWrite' Operates 'digitalRead' quickly.
Is it possible to operate ‘Fast mode’ through ‘CORE1’?
If anyone knows, please help.
The text was updated successfully, but these errors were encountered: