Skip to content

SoftSerial library modified to use INT0 instead PCINT0 interrupt. It allows digispark uses DigiMouse/DigiKeyboard/DigiJoystick at same time SoftSerial. With this, for example, you can use a Bluetooth module to control the mouse or keyboard functionality.

License

Notifications You must be signed in to change notification settings

J-Rios/Digispark_SoftSerial-INT0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Digispark_SoftSerial-INT0

SoftSerial library modified to use INT0 instead PCINT0 interrupt.

It allows digispark to use DigiMouse/DigiKeyboard/DigiJoystick and SoftSerial at same time. For example, you can setup this library to use a Bluetooth/WiFi module to control a mouse or keyboard.

This is a better option than the previous Digispark_DigiUSB-SoftSerial approach. With this one, you don't have to modify the digistump library, just include it as a new library.

How to install

Copy the DigisparkSoftSerial_INT0 folder inside Arduino library folders.
Depending the Arduino versions, it can be found in any of the following paths:

C:/.../Arduino-X.X.X/hardware/digistump/libraries
C:/.../AppData/Local/Arduino15/packages/digistump/hardware/avr/"X.X.X/libraries
C:/.../AppData/Roaming/Arduino15/packages/digistump/hardware/avr/X.X.X/libraries

How to use (Wich pins are available)

  • Must use P2 (INT0) pin for Rx UART.
  • Should use P1 pin for Tx UART (better results than P0).
  • Can't use P3 neither P4 for Tx UART, because them are used for USB (USB+ and USB-).
  • Can't use P5 pin, due it could be reset enabled.

You can find some examples inside the library.

Enjoy It.

About

SoftSerial library modified to use INT0 instead PCINT0 interrupt. It allows digispark uses DigiMouse/DigiKeyboard/DigiJoystick at same time SoftSerial. With this, for example, you can use a Bluetooth module to control the mouse or keyboard functionality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages