I am currently working with Adafruit on Trinket stuff, because of my experience with USB and V-USB. Recently I wrote a bunch of simple tutorials and libraries for Trinket:
I am currently working with Adafruit on Trinket stuff, because of my experience with USB and V-USB. Recently I wrote a bunch of simple tutorials and libraries for Trinket:
Thanks for your projects!
I posted my experience with making your Trinket Fake Serial USB example work in
my project on the Adafruit Trinket Forum.
https://forums.adafruit.com/viewtopic.php?f=52&t=62611
I hope this may be useful to others.
– Jay Bowden
Very useful tutorials, I learn a lot from there.
Still I am not able to do something with my project, I need to send keyboard commands like
CTRL + PageUp , CTRL+PageDown and CTRL+V , I tried also with decimal codes and nothing happened my code is below, please your tips/advance are welcome.
Thank you in advance !
#include “TrinketKeyboard.h”
uint8_t button1 = 0;
uint8_t button2 = 2;
uint8_t value1 = HIGH;
uint8_t value2 = HIGH;
void setup() {
pinMode(button1, INPUT);
pinMode(button2, INPUT);
}
void loop() {
value1 = digitalRead(button1);
if (value1 == LOW)
TrinketKeyboard.pressKey(KEYCODE_MOD_LEFT_CONTROL,KEYCODE_ARROW_UP);
TrinketKeyboard.pressKey(0,0);
value2 = digitalRead(button1);
if (value2 == LOW)
TrinketKeyboard.pressKey(KEYCODE_MOD_LEFT_CONTROL,KEYCODE_PAGE_UP);
TrinketKeyboard.pressKey(0,0);
}