Skip to content

This single file library provides a faster digitalWrite function for Arduino Nano 33 BLE boards.

Notifications You must be signed in to change notification settings

HiroKoni/33BLE_digitalWriteFast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

33BLE digitalWriteFast

About

This library provides a faster digitalWrite() function for Arduino Nano 33 BLE boards. This library is still in development. It may contain bugs.

Usage

Include the hpp file.

#include "33BLE_digitalWriteFast.hpp"

Set the pin mode to OUTPUT just as you do with digitalWrite().

pinMode(PIN_NO, OUTPUT);

Use the digitalWriteFast() function instead of digitalWrite(). For the first argument, you have to use PinName defined in PinNames.h. Pin() function is provided for convenience, which converts pin number (0< pin < 33) to PinName. Pin() is a constexpr function.

digitalWriteFast(Pin(i), HIGH);

The functions are defined in nano33BLE_digitalWriteFast namespace. You might want to use using namespace to use the functions without specifying the namespace, although it is not recommended especially in a large project.

using namespace nano33BLE_digitalWriteFast;

About

This single file library provides a faster digitalWrite function for Arduino Nano 33 BLE boards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages