Skip to content

Instantly share code, notes, and snippets.

@noseglasses
Created March 22, 2018 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noseglasses/2d621889d64b94333d5a130c9809e481 to your computer and use it in GitHub Desktop.
Save noseglasses/2d621889d64b94333d5a130c9809e481 to your computer and use it in GitHub Desktop.
Pre-Processed firmware with Kaleidoscope-LEDEffect-FunctionalColors
# 1 ".../build/kaleidoscope.firmware_Model01-Firmware.ino.cpp"
# 1 ".../build//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 ".../build/kaleidoscope.firmware_Model01-Firmware.ino.cpp"
# 1 ""
# 17 ""
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h" 1
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 1
# 23 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h"
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 1 3
# 48 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 1 3 4
# 212 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 3 4
typedef unsigned int size_t;
# 49 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 2 3
extern "C" {
# 70 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
typedef struct {
int quot;
int rem;
} div_t;
typedef struct {
long quot;
long rem;
} ldiv_t;
typedef int (*__compar_fn_t)(const void *, const void *);
# 116 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern void abort(void) __attribute__((__noreturn__));
extern int abs(int __i) __attribute__((__const__));
# 130 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern long labs(long __i) __attribute__((__const__));
# 153 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern void *bsearch(const void *__key, const void *__base, size_t __nmemb,
size_t __size, int (*__compar)(const void *, const void *));
extern div_t div(int __num, int __denom) __asm__("__divmodhi4") __attribute__((__const__));
extern ldiv_t ldiv(long __num, long __denom) __asm__("__divmodsi4") __attribute__((__const__));
# 185 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern void qsort(void *__base, size_t __nmemb, size_t __size,
__compar_fn_t __compar);
# 218 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern long strtol(const char *__nptr, char **__endptr, int __base);
# 252 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern unsigned long strtoul(const char *__nptr, char **__endptr, int __base);
# 264 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern long atol(const char *__s) __attribute__((__pure__));
# 276 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern int atoi(const char *__s) __attribute__((__pure__));
# 288 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern void exit(int __status) __attribute__((__noreturn__));
# 300 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern void *malloc(size_t __size) __attribute__((__malloc__));
extern void free(void *__ptr);
extern size_t __malloc_margin;
extern char *__malloc_heap_start;
extern char *__malloc_heap_end;
extern void *calloc(size_t __nele, size_t __size) __attribute__((__malloc__));
# 348 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern void *realloc(void *__ptr, size_t __size) __attribute__((__malloc__));
extern double strtod(const char *__nptr, char **__endptr);
# 361 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern double atof(const char *__nptr);
# 383 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern int rand(void);
extern void srand(unsigned int __seed);
extern int rand_r(unsigned long *__ctx);
# 428 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern __inline__ __attribute__((__gnu_inline__))
char *itoa (int __val, char *__s, int __radix)
{
if (!__builtin_constant_p (__radix)) {
extern char *__itoa (int, char *, int);
return __itoa (__val, __s, __radix);
} else if (__radix < 2 || __radix > 36) {
*__s = 0;
return __s;
} else {
extern char *__itoa_ncheck (int, char *, unsigned char);
return __itoa_ncheck (__val, __s, __radix);
}
}
# 473 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern __inline__ __attribute__((__gnu_inline__))
char *ltoa (long __val, char *__s, int __radix)
{
if (!__builtin_constant_p (__radix)) {
extern char *__ltoa (long, char *, int);
return __ltoa (__val, __s, __radix);
} else if (__radix < 2 || __radix > 36) {
*__s = 0;
return __s;
} else {
extern char *__ltoa_ncheck (long, char *, unsigned char);
return __ltoa_ncheck (__val, __s, __radix);
}
}
# 516 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern __inline__ __attribute__((__gnu_inline__))
char *utoa (unsigned int __val, char *__s, int __radix)
{
if (!__builtin_constant_p (__radix)) {
extern char *__utoa (unsigned int, char *, int);
return __utoa (__val, __s, __radix);
} else if (__radix < 2 || __radix > 36) {
*__s = 0;
return __s;
} else {
extern char *__utoa_ncheck (unsigned int, char *, unsigned char);
return __utoa_ncheck (__val, __s, __radix);
}
}
# 558 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern __inline__ __attribute__((__gnu_inline__))
char *ultoa (unsigned long __val, char *__s, int __radix)
{
if (!__builtin_constant_p (__radix)) {
extern char *__ultoa (unsigned long, char *, int);
return __ultoa (__val, __s, __radix);
} else if (__radix < 2 || __radix > 36) {
*__s = 0;
return __s;
} else {
extern char *__ultoa_ncheck (unsigned long, char *, unsigned char);
return __ultoa_ncheck (__val, __s, __radix);
}
}
# 590 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern long random(void);
extern void srandom(unsigned long __seed);
extern long random_r(unsigned long *__ctx);
# 649 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern char *dtostre(double __val, char *__s, unsigned char __prec,
unsigned char __flags);
# 666 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern char *dtostrf(double __val, signed char __width,
unsigned char __prec, char *__s);
# 685 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdlib.h" 3
extern int atexit(void (*)(void));
extern int system (const char *);
extern char *getenv (const char *);
}
# 24 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stdbool.h" 1 3 4
# 25 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 1 3
# 46 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 1 3 4
# 47 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 2 3
# 58 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern "C" {
# 125 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern int ffs(int __val) __attribute__((__const__));
extern int ffsl(long __val) __attribute__((__const__));
__extension__ extern int ffsll(long long __val) __attribute__((__const__));
# 150 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern void *memccpy(void *, const void *, int, size_t);
# 162 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern void *memchr(const void *, int, size_t) __attribute__((__pure__));
# 180 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern int memcmp(const void *, const void *, size_t) __attribute__((__pure__));
# 191 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern void *memcpy(void *, const void *, size_t);
# 203 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern void *memmem(const void *, size_t, const void *, size_t) __attribute__((__pure__));
# 213 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern void *memmove(void *, const void *, size_t);
# 225 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern void *memrchr(const void *, int, size_t) __attribute__((__pure__));
# 235 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern void *memset(void *, int, size_t);
# 248 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strcat(char *, const char *);
# 262 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strchr(const char *, int) __attribute__((__pure__));
# 274 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strchrnul(const char *, int) __attribute__((__pure__));
# 287 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern int strcmp(const char *, const char *) __attribute__((__pure__));
# 305 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strcpy(char *, const char *);
# 320 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern int strcasecmp(const char *, const char *) __attribute__((__pure__));
# 333 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strcasestr(const char *, const char *) __attribute__((__pure__));
# 344 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern size_t strcspn(const char *__s, const char *__reject) __attribute__((__pure__));
# 364 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strdup(const char *s1);
# 377 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern size_t strlcat(char *, const char *, size_t);
# 388 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern size_t strlcpy(char *, const char *, size_t);
# 399 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern size_t strlen(const char *) __attribute__((__pure__));
# 411 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strlwr(char *);
# 422 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strncat(char *, const char *, size_t);
# 434 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern int strncmp(const char *, const char *, size_t) __attribute__((__pure__));
# 449 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strncpy(char *, const char *, size_t);
# 464 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern int strncasecmp(const char *, const char *, size_t) __attribute__((__pure__));
# 478 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern size_t strnlen(const char *, size_t) __attribute__((__pure__));
# 491 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strpbrk(const char *__s, const char *__accept) __attribute__((__pure__));
# 505 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strrchr(const char *, int) __attribute__((__pure__));
# 515 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strrev(char *);
# 533 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strsep(char **, const char *);
# 544 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern size_t strspn(const char *__s, const char *__accept) __attribute__((__pure__));
# 557 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strstr(const char *, const char *) __attribute__((__pure__));
# 576 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strtok(char *, const char *);
# 593 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strtok_r(char *, const char *, char **);
# 606 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/string.h" 3
extern char *strupr(char *);
extern int strcoll(const char *s1, const char *s2);
extern char *strerror(int errnum);
extern size_t strxfrm(char *dest, const char *src, size_t n);
}
# 26 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 1 3
# 121 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern "C" {
extern double cos(double __x) __attribute__((__const__));
extern double sin(double __x) __attribute__((__const__));
extern double tan(double __x) __attribute__((__const__));
extern double fabs(double __x) __attribute__((__const__));
extern double fmod(double __x, double __y) __attribute__((__const__));
# 168 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern double modf(double __x, double *__iptr);
extern float modff (float __x, float *__iptr);
extern double sqrt(double __x) __attribute__((__const__));
extern float sqrtf (float) __attribute__((__const__));
extern double cbrt(double __x) __attribute__((__const__));
# 195 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern double hypot (double __x, double __y) __attribute__((__const__));
extern double square(double __x) __attribute__((__const__));
extern double floor(double __x) __attribute__((__const__));
extern double ceil(double __x) __attribute__((__const__));
# 235 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern double frexp(double __x, int *__pexp);
extern double ldexp(double __x, int __exp) __attribute__((__const__));
extern double exp(double __x) __attribute__((__const__));
extern double cosh(double __x) __attribute__((__const__));
extern double sinh(double __x) __attribute__((__const__));
extern double tanh(double __x) __attribute__((__const__));
extern double acos(double __x) __attribute__((__const__));
extern double asin(double __x) __attribute__((__const__));
extern double atan(double __x) __attribute__((__const__));
# 299 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern double atan2(double __y, double __x) __attribute__((__const__));
extern double log(double __x) __attribute__((__const__));
extern double log10(double __x) __attribute__((__const__));
extern double pow(double __x, double __y) __attribute__((__const__));
extern int isnan(double __x) __attribute__((__const__));
# 334 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern int isinf(double __x) __attribute__((__const__));
__attribute__((__const__)) static inline int isfinite (double __x)
{
unsigned char __exp;
__asm__ (
"mov %0, %C1 \n\t"
"lsl %0 \n\t"
"mov %0, %D1 \n\t"
"rol %0 "
: "=r" (__exp)
: "r" (__x) );
return __exp != 0xff;
}
__attribute__((__const__)) static inline double copysign (double __x, double __y)
{
__asm__ (
"bst %D2, 7 \n\t"
"bld %D0, 7 "
: "=r" (__x)
: "0" (__x), "r" (__y) );
return __x;
}
# 377 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern int signbit (double __x) __attribute__((__const__));
extern double fdim (double __x, double __y) __attribute__((__const__));
# 393 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern double fma (double __x, double __y, double __z) __attribute__((__const__));
extern double fmax (double __x, double __y) __attribute__((__const__));
extern double fmin (double __x, double __y) __attribute__((__const__));
extern double trunc (double __x) __attribute__((__const__));
# 427 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern double round (double __x) __attribute__((__const__));
# 440 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern long lround (double __x) __attribute__((__const__));
# 454 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/math.h" 3
extern long lrint (double __x) __attribute__((__const__));
}
# 27 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 1 3
# 88 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/inttypes.h" 1 3
# 37 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/inttypes.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stdint.h" 1 3 4
# 9 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stdint.h" 3 4
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdint.h" 1 3 4
# 125 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdint.h" 3 4
typedef signed int int8_t __attribute__((__mode__(__QI__)));
typedef unsigned int uint8_t __attribute__((__mode__(__QI__)));
typedef signed int int16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
typedef signed int int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int uint32_t __attribute__ ((__mode__ (__SI__)));
typedef signed int int64_t __attribute__((__mode__(__DI__)));
typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
# 146 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdint.h" 3 4
typedef int16_t intptr_t;
typedef uint16_t uintptr_t;
# 163 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdint.h" 3 4
typedef int8_t int_least8_t;
typedef uint8_t uint_least8_t;
typedef int16_t int_least16_t;
typedef uint16_t uint_least16_t;
typedef int32_t int_least32_t;
typedef uint32_t uint_least32_t;
typedef int64_t int_least64_t;
typedef uint64_t uint_least64_t;
# 217 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdint.h" 3 4
typedef int8_t int_fast8_t;
typedef uint8_t uint_fast8_t;
typedef int16_t int_fast16_t;
typedef uint16_t uint_fast16_t;
typedef int32_t int_fast32_t;
typedef uint32_t uint_fast32_t;
typedef int64_t int_fast64_t;
typedef uint64_t uint_fast64_t;
# 277 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdint.h" 3 4
typedef int64_t intmax_t;
typedef uint64_t uintmax_t;
# 10 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stdint.h" 2 3 4
# 38 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/inttypes.h" 2 3
# 77 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/inttypes.h" 3
typedef int32_t int_farptr_t;
typedef uint32_t uint_farptr_t;
# 89 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 2 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 1 3 4
# 90 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 2 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 1 3
# 99 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/sfr_defs.h" 1 3
# 100 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 2 3
# 144 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/iom32u4.h" 1 3
# 145 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 2 3
# 627 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/portpins.h" 1 3
# 628 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 2 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/common.h" 1 3
# 630 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 2 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/version.h" 1 3
# 632 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 2 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/fuse.h" 1 3
# 239 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/fuse.h" 3
typedef struct
{
unsigned char low;
unsigned char high;
unsigned char extended;
} __fuse_t;
# 639 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 2 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/lock.h" 1 3
# 642 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/io.h" 2 3
# 91 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 2 3
# 116 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern "C" {
# 1158 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern const void * memchr_P(const void *, int __val, size_t __len) __attribute__((__const__));
# 1172 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int memcmp_P(const void *, const void *, size_t) __attribute__((__pure__));
extern void *memccpy_P(void *, const void *, int __val, size_t);
# 1188 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern void *memcpy_P(void *, const void *, size_t);
extern void *memmem_P(const void *, size_t, const void *, size_t) __attribute__((__pure__));
# 1207 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern const void * memrchr_P(const void *, int __val, size_t __len) __attribute__((__const__));
# 1217 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strcat_P(char *, const char *);
# 1233 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern const char * strchr_P(const char *, int __val) __attribute__((__const__));
# 1245 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern const char * strchrnul_P(const char *, int __val) __attribute__((__const__));
# 1258 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strcmp_P(const char *, const char *) __attribute__((__pure__));
# 1268 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strcpy_P(char *, const char *);
# 1285 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strcasecmp_P(const char *, const char *) __attribute__((__pure__));
extern char *strcasestr_P(const char *, const char *) __attribute__((__pure__));
# 1305 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strcspn_P(const char *__s, const char * __reject) __attribute__((__pure__));
# 1321 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strlcat_P (char *, const char *, size_t );
# 1334 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strlcpy_P (char *, const char *, size_t );
# 1346 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strnlen_P(const char *, size_t) __attribute__((__const__));
# 1357 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strncmp_P(const char *, const char *, size_t) __attribute__((__pure__));
# 1376 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strncasecmp_P(const char *, const char *, size_t) __attribute__((__pure__));
# 1387 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strncat_P(char *, const char *, size_t);
# 1401 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strncpy_P(char *, const char *, size_t);
# 1416 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strpbrk_P(const char *__s, const char * __accept) __attribute__((__pure__));
# 1427 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern const char * strrchr_P(const char *, int __val) __attribute__((__const__));
# 1447 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strsep_P(char **__sp, const char * __delim);
# 1460 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strspn_P(const char *__s, const char * __accept) __attribute__((__pure__));
# 1474 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strstr_P(const char *, const char *) __attribute__((__pure__));
# 1496 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strtok_P(char *__s, const char * __delim);
# 1516 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strtok_rP(char *__s, const char * __delim, char **__last);
# 1529 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strlen_PF(uint_farptr_t src) __attribute__((__const__));
# 1545 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strnlen_PF(uint_farptr_t src, size_t len) __attribute__((__const__));
# 1560 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern void *memcpy_PF(void *dest, uint_farptr_t src, size_t len);
# 1575 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strcpy_PF(char *dest, uint_farptr_t src);
# 1595 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strncpy_PF(char *dest, uint_farptr_t src, size_t len);
# 1611 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strcat_PF(char *dest, uint_farptr_t src);
# 1632 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strlcat_PF(char *dst, uint_farptr_t src, size_t siz);
# 1649 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strncat_PF(char *dest, uint_farptr_t src, size_t len);
# 1665 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strcmp_PF(const char *s1, uint_farptr_t s2) __attribute__((__pure__));
# 1682 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strncmp_PF(const char *s1, uint_farptr_t s2, size_t n) __attribute__((__pure__));
# 1698 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strcasecmp_PF(const char *s1, uint_farptr_t s2) __attribute__((__pure__));
# 1716 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int strncasecmp_PF(const char *s1, uint_farptr_t s2, size_t n) __attribute__((__pure__));
# 1732 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern char *strstr_PF(const char *s1, uint_farptr_t s2);
# 1744 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t strlcpy_PF(char *dst, uint_farptr_t src, size_t siz);
# 1760 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern int memcmp_PF(const void *, uint_farptr_t, size_t) __attribute__((__pure__));
# 1779 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/pgmspace.h" 3
extern size_t __strlen_P(const char *) __attribute__((__const__));
__attribute__((__always_inline__)) static __inline__ size_t strlen_P(const char * s);
static __inline__ size_t strlen_P(const char *s) {
return __builtin_constant_p(__builtin_strlen(s))
? __builtin_strlen(s) : __strlen_P(s);
}
}
# 29 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/interrupt.h" 1 3
# 31 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/binary.h" 1
# 33 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
extern "C"{
void yield(void);
# 121 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h"
typedef unsigned int word;
typedef bool boolean;
typedef uint8_t byte;
void init(void);
void initVariant(void);
int atexit(void (*func)()) __attribute__((weak));
void pinMode(uint8_t, uint8_t);
void digitalWrite(uint8_t, uint8_t);
int digitalRead(uint8_t);
int analogRead(uint8_t);
void analogReference(uint8_t mode);
void analogWrite(uint8_t, int);
unsigned long millis(void);
unsigned long micros(void);
void delay(unsigned long);
void delayMicroseconds(unsigned int us);
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout);
unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout);
void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder);
void attachInterrupt(uint8_t, void (*)(void), int mode);
void detachInterrupt(uint8_t);
void setup(void);
void loop(void);
# 163 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h"
extern const uint16_t __attribute__((__progmem__)) port_to_mode_PGM[];
extern const uint16_t __attribute__((__progmem__)) port_to_input_PGM[];
extern const uint16_t __attribute__((__progmem__)) port_to_output_PGM[];
extern const uint8_t __attribute__((__progmem__)) digital_pin_to_port_PGM[];
extern const uint8_t __attribute__((__progmem__)) digital_pin_to_bit_mask_PGM[];
extern const uint8_t __attribute__((__progmem__)) digital_pin_to_timer_PGM[];
# 226 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h"
}
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/WCharacter.h" 1
# 23 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/WCharacter.h"
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/ctype.h" 1 3
# 48 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/ctype.h" 3
extern "C" {
# 74 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/ctype.h" 3
extern int isalnum(int __c) __attribute__((__const__));
extern int isalpha(int __c) __attribute__((__const__));
extern int isascii(int __c) __attribute__((__const__));
extern int isblank(int __c) __attribute__((__const__));
extern int iscntrl(int __c) __attribute__((__const__));
extern int isdigit(int __c) __attribute__((__const__));
extern int isgraph(int __c) __attribute__((__const__));
extern int islower(int __c) __attribute__((__const__));
extern int isprint(int __c) __attribute__((__const__));
extern int ispunct(int __c) __attribute__((__const__));
extern int isspace(int __c) __attribute__((__const__));
extern int isupper(int __c) __attribute__((__const__));
extern int isxdigit(int __c) __attribute__((__const__));
# 173 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/ctype.h" 3
extern int toascii(int __c) __attribute__((__const__));
extern int tolower(int __c) __attribute__((__const__));
extern int toupper(int __c) __attribute__((__const__));
}
# 24 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/WCharacter.h" 2
inline boolean isAlphaNumeric(int c) __attribute__((always_inline));
inline boolean isAlpha(int c) __attribute__((always_inline));
inline boolean isAscii(int c) __attribute__((always_inline));
inline boolean isWhitespace(int c) __attribute__((always_inline));
inline boolean isControl(int c) __attribute__((always_inline));
inline boolean isDigit(int c) __attribute__((always_inline));
inline boolean isGraph(int c) __attribute__((always_inline));
inline boolean isLowerCase(int c) __attribute__((always_inline));
inline boolean isPrintable(int c) __attribute__((always_inline));
inline boolean isPunct(int c) __attribute__((always_inline));
inline boolean isSpace(int c) __attribute__((always_inline));
inline boolean isUpperCase(int c) __attribute__((always_inline));
inline boolean isHexadecimalDigit(int c) __attribute__((always_inline));
inline int toAscii(int c) __attribute__((always_inline));
inline int toLowerCase(int c) __attribute__((always_inline));
inline int toUpperCase(int c)__attribute__((always_inline));
inline boolean isAlphaNumeric(int c)
{
return ( isalnum(c) == 0 ? false : true);
}
inline boolean isAlpha(int c)
{
return ( isalpha(c) == 0 ? false : true);
}
inline boolean isAscii(int c)
{
return ( isascii (c) == 0 ? false : true);
}
inline boolean isWhitespace(int c)
{
return ( isblank (c) == 0 ? false : true);
}
inline boolean isControl(int c)
{
return ( iscntrl (c) == 0 ? false : true);
}
inline boolean isDigit(int c)
{
return ( isdigit (c) == 0 ? false : true);
}
inline boolean isGraph(int c)
{
return ( isgraph (c) == 0 ? false : true);
}
inline boolean isLowerCase(int c)
{
return (islower (c) == 0 ? false : true);
}
inline boolean isPrintable(int c)
{
return ( isprint (c) == 0 ? false : true);
}
inline boolean isPunct(int c)
{
return ( ispunct (c) == 0 ? false : true);
}
inline boolean isSpace(int c)
{
return ( isspace (c) == 0 ? false : true);
}
inline boolean isUpperCase(int c)
{
return ( isupper (c) == 0 ? false : true);
}
inline boolean isHexadecimalDigit(int c)
{
return ( isxdigit (c) == 0 ? false : true);
}
inline int toAscii(int c)
{
return toascii (c);
}
# 156 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/WCharacter.h"
inline int toLowerCase(int c)
{
return tolower (c);
}
inline int toUpperCase(int c)
{
return toupper (c);
}
# 231 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/WString.h" 1
# 37 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/WString.h"
class __FlashStringHelper;
class StringSumHelper;
class String
{
typedef void (String::*StringIfHelperType)() const;
void StringIfHelper() const {}
public:
String(const char *cstr = "");
String(const String &str);
String(const __FlashStringHelper *str);
String(String &&rval);
String(StringSumHelper &&rval);
explicit String(char c);
explicit String(unsigned char, unsigned char base=10);
explicit String(int, unsigned char base=10);
explicit String(unsigned int, unsigned char base=10);
explicit String(long, unsigned char base=10);
explicit String(unsigned long, unsigned char base=10);
explicit String(float, unsigned char decimalPlaces=2);
explicit String(double, unsigned char decimalPlaces=2);
~String(void);
unsigned char reserve(unsigned int size);
inline unsigned int length(void) const {return len;}
String & operator = (const String &rhs);
String & operator = (const char *cstr);
String & operator = (const __FlashStringHelper *str);
String & operator = (String &&rval);
String & operator = (StringSumHelper &&rval);
unsigned char concat(const String &str);
unsigned char concat(const char *cstr);
unsigned char concat(char c);
unsigned char concat(unsigned char c);
unsigned char concat(int num);
unsigned char concat(unsigned int num);
unsigned char concat(long num);
unsigned char concat(unsigned long num);
unsigned char concat(float num);
unsigned char concat(double num);
unsigned char concat(const __FlashStringHelper * str);
String & operator += (const String &rhs) {concat(rhs); return (*this);}
String & operator += (const char *cstr) {concat(cstr); return (*this);}
String & operator += (char c) {concat(c); return (*this);}
String & operator += (unsigned char num) {concat(num); return (*this);}
String & operator += (int num) {concat(num); return (*this);}
String & operator += (unsigned int num) {concat(num); return (*this);}
String & operator += (long num) {concat(num); return (*this);}
String & operator += (unsigned long num) {concat(num); return (*this);}
String & operator += (float num) {concat(num); return (*this);}
String & operator += (double num) {concat(num); return (*this);}
String & operator += (const __FlashStringHelper *str){concat(str); return (*this);}
friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs);
friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr);
friend StringSumHelper & operator + (const StringSumHelper &lhs, char c);
friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char num);
friend StringSumHelper & operator + (const StringSumHelper &lhs, int num);
friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num);
friend StringSumHelper & operator + (const StringSumHelper &lhs, long num);
friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num);
friend StringSumHelper & operator + (const StringSumHelper &lhs, float num);
friend StringSumHelper & operator + (const StringSumHelper &lhs, double num);
friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *rhs);
operator StringIfHelperType() const { return buffer ? &String::StringIfHelper : 0; }
int compareTo(const String &s) const;
unsigned char equals(const String &s) const;
unsigned char equals(const char *cstr) const;
unsigned char operator == (const String &rhs) const {return equals(rhs);}
unsigned char operator == (const char *cstr) const {return equals(cstr);}
unsigned char operator != (const String &rhs) const {return !equals(rhs);}
unsigned char operator != (const char *cstr) const {return !equals(cstr);}
unsigned char operator < (const String &rhs) const;
unsigned char operator > (const String &rhs) const;
unsigned char operator <= (const String &rhs) const;
unsigned char operator >= (const String &rhs) const;
unsigned char equalsIgnoreCase(const String &s) const;
unsigned char startsWith( const String &prefix) const;
unsigned char startsWith(const String &prefix, unsigned int offset) const;
unsigned char endsWith(const String &suffix) const;
char charAt(unsigned int index) const;
void setCharAt(unsigned int index, char c);
char operator [] (unsigned int index) const;
char& operator [] (unsigned int index);
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
{ getBytes((unsigned char *)buf, bufsize, index); }
const char* c_str() const { return buffer; }
char* begin() { return buffer; }
char* end() { return buffer + length(); }
const char* begin() const { return c_str(); }
const char* end() const { return c_str() + length(); }
int indexOf( char ch ) const;
int indexOf( char ch, unsigned int fromIndex ) const;
int indexOf( const String &str ) const;
int indexOf( const String &str, unsigned int fromIndex ) const;
int lastIndexOf( char ch ) const;
int lastIndexOf( char ch, unsigned int fromIndex ) const;
int lastIndexOf( const String &str ) const;
int lastIndexOf( const String &str, unsigned int fromIndex ) const;
String substring( unsigned int beginIndex ) const { return substring(beginIndex, len); };
String substring( unsigned int beginIndex, unsigned int endIndex ) const;
void replace(char find, char replace);
void replace(const String& find, const String& replace);
void remove(unsigned int index);
void remove(unsigned int index, unsigned int count);
void toLowerCase(void);
void toUpperCase(void);
void trim(void);
long toInt(void) const;
float toFloat(void) const;
double toDouble(void) const;
protected:
char *buffer;
unsigned int capacity;
unsigned int len;
protected:
void init(void);
void invalidate(void);
unsigned char changeBuffer(unsigned int maxStrLen);
unsigned char concat(const char *cstr, unsigned int length);
String & copy(const char *cstr, unsigned int length);
String & copy(const __FlashStringHelper *pstr, unsigned int length);
void move(String &rhs);
};
class StringSumHelper : public String
{
public:
StringSumHelper(const String &s) : String(s) {}
StringSumHelper(const char *p) : String(p) {}
StringSumHelper(char c) : String(c) {}
StringSumHelper(unsigned char num) : String(num) {}
StringSumHelper(int num) : String(num) {}
StringSumHelper(unsigned int num) : String(num) {}
StringSumHelper(long num) : String(num) {}
StringSumHelper(unsigned long num) : String(num) {}
StringSumHelper(float num) : String(num) {}
StringSumHelper(double num) : String(num) {}
};
# 232 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/HardwareSerial.h" 1
# 29 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/HardwareSerial.h"
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Stream.h" 1
# 26 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Stream.h"
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Print.h" 1
# 24 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Print.h"
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 1 3
# 45 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stdarg.h" 1 3 4
# 40 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 98 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stdarg.h" 3 4
typedef __gnuc_va_list va_list;
# 46 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 2 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 1 3 4
# 51 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 2 3
# 244 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
struct __file {
char *buf;
unsigned char unget;
uint8_t flags;
# 263 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
int size;
int len;
int (*put)(char, struct __file *);
int (*get)(struct __file *);
void *udata;
};
# 277 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
typedef struct __file FILE;
# 399 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern "C" {
extern struct __file *__iob[];
# 419 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern FILE *fdevopen(int (*__put)(char, FILE*), int (*__get)(FILE*));
# 436 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int fclose(FILE *__stream);
# 610 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int vfprintf(FILE *__stream, const char *__fmt, va_list __ap);
extern int vfprintf_P(FILE *__stream, const char *__fmt, va_list __ap);
extern int fputc(int __c, FILE *__stream);
extern int putc(int __c, FILE *__stream);
extern int putchar(int __c);
# 651 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int printf(const char *__fmt, ...);
extern int printf_P(const char *__fmt, ...);
extern int vprintf(const char *__fmt, va_list __ap);
extern int sprintf(char *__s, const char *__fmt, ...);
extern int sprintf_P(char *__s, const char *__fmt, ...);
# 687 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int snprintf(char *__s, size_t __n, const char *__fmt, ...);
extern int snprintf_P(char *__s, size_t __n, const char *__fmt, ...);
extern int vsprintf(char *__s, const char *__fmt, va_list ap);
extern int vsprintf_P(char *__s, const char *__fmt, va_list ap);
# 715 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int vsnprintf(char *__s, size_t __n, const char *__fmt, va_list ap);
extern int vsnprintf_P(char *__s, size_t __n, const char *__fmt, va_list ap);
extern int fprintf(FILE *__stream, const char *__fmt, ...);
extern int fprintf_P(FILE *__stream, const char *__fmt, ...);
extern int fputs(const char *__str, FILE *__stream);
extern int fputs_P(const char *__str, FILE *__stream);
extern int puts(const char *__str);
extern int puts_P(const char *__str);
# 764 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern size_t fwrite(const void *__ptr, size_t __size, size_t __nmemb,
FILE *__stream);
extern int fgetc(FILE *__stream);
extern int getc(FILE *__stream);
extern int getchar(void);
# 812 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int ungetc(int __c, FILE *__stream);
# 824 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern char *fgets(char *__str, int __size, FILE *__stream);
extern char *gets(char *__str);
# 842 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern size_t fread(void *__ptr, size_t __size, size_t __nmemb,
FILE *__stream);
extern void clearerr(FILE *__stream);
# 859 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int feof(FILE *__stream);
# 870 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
extern int ferror(FILE *__stream);
extern int vfscanf(FILE *__stream, const char *__fmt, va_list __ap);
extern int vfscanf_P(FILE *__stream, const char *__fmt, va_list __ap);
extern int fscanf(FILE *__stream, const char *__fmt, ...);
extern int fscanf_P(FILE *__stream, const char *__fmt, ...);
extern int scanf(const char *__fmt, ...);
extern int scanf_P(const char *__fmt, ...);
extern int vscanf(const char *__fmt, va_list __ap);
extern int sscanf(const char *__buf, const char *__fmt, ...);
extern int sscanf_P(const char *__buf, const char *__fmt, ...);
# 940 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/stdio.h" 3
static __inline__ int fflush(FILE *stream __attribute__((unused)))
{
return 0;
}
__extension__ typedef long long fpos_t;
extern int fgetpos(FILE *stream, fpos_t *pos);
extern FILE *fopen(const char *path, const char *mode);
extern FILE *freopen(const char *path, const char *mode, FILE *stream);
extern FILE *fdopen(int, const char *);
extern int fseek(FILE *stream, long offset, int whence);
extern int fsetpos(FILE *stream, fpos_t *pos);
extern long ftell(FILE *stream);
extern int fileno(FILE *);
extern void perror(const char *s);
extern int remove(const char *pathname);
extern int rename(const char *oldpath, const char *newpath);
extern void rewind(FILE *stream);
extern void setbuf(FILE *stream, char *buf);
extern int setvbuf(FILE *stream, char *buf, int mode, size_t size);
extern FILE *tmpfile(void);
extern char *tmpnam (char *s);
}
# 25 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Print.h" 2
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Printable.h" 1
# 25 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Printable.h"
class Print;
class Printable
{
public:
virtual size_t printTo(Print& p) const = 0;
};
# 28 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Print.h" 2
# 37 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Print.h"
class Print
{
private:
int write_error;
size_t printNumber(unsigned long, uint8_t);
size_t printFloat(double, uint8_t);
protected:
void setWriteError(int err = 1) { write_error = err; }
public:
Print() : write_error(0) {}
int getWriteError() { return write_error; }
void clearWriteError() { setWriteError(0); }
virtual size_t write(uint8_t) = 0;
size_t write(const char *str) {
if (str == __null) return 0;
return write((const uint8_t *)str, strlen(str));
}
virtual size_t write(const uint8_t *buffer, size_t size);
size_t write(const char *buffer, size_t size) {
return write((const uint8_t *)buffer, size);
}
virtual int availableForWrite() { return 0; }
size_t print(const __FlashStringHelper *);
size_t print(const String &);
size_t print(const char[]);
size_t print(char);
size_t print(unsigned char, int = 10);
size_t print(int, int = 10);
size_t print(unsigned int, int = 10);
size_t print(long, int = 10);
size_t print(unsigned long, int = 10);
size_t print(double, int = 2);
size_t print(const Printable&);
size_t println(const __FlashStringHelper *);
size_t println(const String &s);
size_t println(const char[]);
size_t println(char);
size_t println(unsigned char, int = 10);
size_t println(int, int = 10);
size_t println(unsigned int, int = 10);
size_t println(long, int = 10);
size_t println(unsigned long, int = 10);
size_t println(double, int = 2);
size_t println(const Printable&);
size_t println(void);
virtual void flush() { }
};
# 27 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Stream.h" 2
# 41 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Stream.h"
enum LookaheadMode{
SKIP_ALL,
SKIP_NONE,
SKIP_WHITESPACE
};
class Stream : public Print
{
protected:
unsigned long _timeout;
unsigned long _startMillis;
int timedRead();
int timedPeek();
int peekNextDigit(LookaheadMode lookahead, bool detectDecimal);
public:
virtual int available() = 0;
virtual int read() = 0;
virtual int peek() = 0;
Stream() {_timeout=1000;}
void setTimeout(unsigned long timeout);
unsigned long getTimeout(void) { return _timeout; }
bool find(char *target);
bool find(uint8_t *target) { return find ((char *)target); }
bool find(char *target, size_t length);
bool find(uint8_t *target, size_t length) { return find ((char *)target, length); }
bool find(char target) { return find (&target, 1); }
bool findUntil(char *target, char *terminator);
bool findUntil(uint8_t *target, char *terminator) { return findUntil((char *)target, terminator); }
bool findUntil(char *target, size_t targetLen, char *terminate, size_t termLen);
bool findUntil(uint8_t *target, size_t targetLen, char *terminate, size_t termLen) {return findUntil((char *)target, targetLen, terminate, termLen); }
long parseInt(LookaheadMode lookahead = SKIP_ALL, char ignore = '\x01');
float parseFloat(LookaheadMode lookahead = SKIP_ALL, char ignore = '\x01');
size_t readBytes( char *buffer, size_t length);
size_t readBytes( uint8_t *buffer, size_t length) { return readBytes((char *)buffer, length); }
size_t readBytesUntil( char terminator, char *buffer, size_t length);
size_t readBytesUntil( char terminator, uint8_t *buffer, size_t length) { return readBytesUntil(terminator, (char *)buffer, length); }
String readString();
String readStringUntil(char terminator);
protected:
long parseInt(char ignore) { return parseInt(SKIP_ALL, ignore); }
float parseFloat(char ignore) { return parseFloat(SKIP_ALL, ignore); }
struct MultiTarget {
const char *str;
size_t len;
size_t index;
};
int findMulti(struct MultiTarget *targets, int tCount);
};
# 30 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/HardwareSerial.h" 2
# 59 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/HardwareSerial.h"
typedef uint8_t tx_buffer_index_t;
typedef uint8_t rx_buffer_index_t;
# 93 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/HardwareSerial.h"
class HardwareSerial : public Stream
{
protected:
volatile uint8_t * const _ubrrh;
volatile uint8_t * const _ubrrl;
volatile uint8_t * const _ucsra;
volatile uint8_t * const _ucsrb;
volatile uint8_t * const _ucsrc;
volatile uint8_t * const _udr;
bool _written;
volatile rx_buffer_index_t _rx_buffer_head;
volatile rx_buffer_index_t _rx_buffer_tail;
volatile tx_buffer_index_t _tx_buffer_head;
volatile tx_buffer_index_t _tx_buffer_tail;
unsigned char _rx_buffer[64];
unsigned char _tx_buffer[64];
public:
inline HardwareSerial(
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
volatile uint8_t *ucsrc, volatile uint8_t *udr);
void begin(unsigned long baud) { begin(baud, 0x06); }
void begin(unsigned long, uint8_t);
void end();
virtual int available(void);
virtual int peek(void);
virtual int read(void);
virtual int availableForWrite(void);
virtual void flush(void);
virtual size_t write(uint8_t);
inline size_t write(unsigned long n) { return write((uint8_t)n); }
inline size_t write(long n) { return write((uint8_t)n); }
inline size_t write(unsigned int n) { return write((uint8_t)n); }
inline size_t write(int n) { return write((uint8_t)n); }
using Print::write;
operator bool() { return true; }
inline void _rx_complete_irq(void);
void _tx_udr_empty_irq(void);
};
extern HardwareSerial Serial1;
# 159 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/HardwareSerial.h"
extern void serialEventRun(void) __attribute__((weak));
# 233 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h" 1
# 25 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h"
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/eeprom.h" 1 3
# 50 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/eeprom.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 1 3 4
# 147 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 3 4
typedef int ptrdiff_t;
# 422 ".../arduino/arduino-1.8.5/hardware/tools/avr/lib/gcc/avr/4.9.2/include/stddef.h" 3 4
typedef struct {
long long __max_align_ll __attribute__((__aligned__(__alignof__(long long))));
long double __max_align_ld __attribute__((__aligned__(__alignof__(long double))));
} max_align_t;
typedef decltype(nullptr) nullptr_t;
# 51 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/eeprom.h" 2 3
# 92 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/eeprom.h" 3
extern "C" {
# 137 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/eeprom.h" 3
uint8_t eeprom_read_byte (const uint8_t *__p) __attribute__((__pure__));
uint16_t eeprom_read_word (const uint16_t *__p) __attribute__((__pure__));
uint32_t eeprom_read_dword (const uint32_t *__p) __attribute__((__pure__));
float eeprom_read_float (const float *__p) __attribute__((__pure__));
void eeprom_read_block (void *__dst, const void *__src, size_t __n);
void eeprom_write_byte (uint8_t *__p, uint8_t __value);
void eeprom_write_word (uint16_t *__p, uint16_t __value);
void eeprom_write_dword (uint32_t *__p, uint32_t __value);
void eeprom_write_float (float *__p, float __value);
void eeprom_write_block (const void *__src, void *__dst, size_t __n);
void eeprom_update_byte (uint8_t *__p, uint8_t __value);
void eeprom_update_word (uint16_t *__p, uint16_t __value);
void eeprom_update_dword (uint32_t *__p, uint32_t __value);
void eeprom_update_float (float *__p, float __value);
void eeprom_update_block (const void *__src, void *__dst, size_t __n);
# 241 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/avr/eeprom.h" 3
}
# 26 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h" 2
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 1 3
# 45 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
# 1 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay_basic.h" 1 3
# 40 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay_basic.h" 3
static __inline__ void _delay_loop_1(uint8_t __count) __attribute__((__always_inline__));
static __inline__ void _delay_loop_2(uint16_t __count) __attribute__((__always_inline__));
# 80 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay_basic.h" 3
void
_delay_loop_1(uint8_t __count)
{
__asm__ volatile (
"1: dec %0" "\n\t"
"brne 1b"
: "=r" (__count)
: "0" (__count)
);
}
# 102 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay_basic.h" 3
void
_delay_loop_2(uint16_t __count)
{
__asm__ volatile (
"1: sbiw %0,1" "\n\t"
"brne 1b"
: "=w" (__count)
: "0" (__count)
);
}
# 46 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 2 3
# 86 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
static __inline__ void _delay_us(double __us) __attribute__((__always_inline__));
static __inline__ void _delay_ms(double __ms) __attribute__((__always_inline__));
# 165 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
void
_delay_ms(double __ms)
{
double __tmp ;
uint32_t __ticks_dc;
extern void __builtin_avr_delay_cycles(unsigned long);
__tmp = ((16000000L) / 1e3) * __ms;
# 184 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
__builtin_avr_delay_cycles(__ticks_dc);
# 210 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
}
# 254 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
void
_delay_us(double __us)
{
double __tmp ;
uint32_t __ticks_dc;
extern void __builtin_avr_delay_cycles(unsigned long);
__tmp = ((16000000L) / 1e6) * __us;
# 273 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
__builtin_avr_delay_cycles(__ticks_dc);
# 299 ".../arduino/arduino-1.8.5/hardware/tools/avr/avr/include/util/delay.h" 3
}
# 28 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h" 2
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned long u32;
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 1
# 34 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h" 2
# 43 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h"
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBDesc.h" 1
# 44 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h" 2
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBCore.h" 1
# 21 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBCore.h"
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h" 1
# 22 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBCore.h" 2
# 134 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBCore.h"
typedef struct {
u8 len;
u8 dtype;
u16 usbVersion;
u8 deviceClass;
u8 deviceSubClass;
u8 deviceProtocol;
u8 packetSize0;
u16 idVendor;
u16 idProduct;
u16 deviceVersion;
u8 iManufacturer;
u8 iProduct;
u8 iSerialNumber;
u8 bNumConfigurations;
} DeviceDescriptor;
typedef struct {
u8 len;
u8 dtype;
u16 clen;
u8 numInterfaces;
u8 config;
u8 iconfig;
u8 attributes;
u8 maxPower;
} ConfigDescriptor;
typedef struct
{
u8 len;
u8 dtype;
u8 number;
u8 alternate;
u8 numEndpoints;
u8 interfaceClass;
u8 interfaceSubClass;
u8 protocol;
u8 iInterface;
} InterfaceDescriptor;
typedef struct
{
u8 len;
u8 dtype;
u8 addr;
u8 attr;
u16 packetSize;
u8 interval;
} EndpointDescriptor;
typedef struct
{
u8 len;
u8 dtype;
u8 firstInterface;
u8 interfaceCount;
u8 functionClass;
u8 funtionSubClass;
u8 functionProtocol;
u8 iInterface;
} IADDescriptor;
typedef struct
{
u8 len;
u8 dtype;
u8 subtype;
u8 d0;
u8 d1;
} CDCCSInterfaceDescriptor;
typedef struct
{
u8 len;
u8 dtype;
u8 subtype;
u8 d0;
} CDCCSInterfaceDescriptor4;
typedef struct
{
u8 len;
u8 dtype;
u8 subtype;
u8 bmCapabilities;
u8 bDataInterface;
} CMFunctionalDescriptor;
typedef struct
{
u8 len;
u8 dtype;
u8 subtype;
u8 bmCapabilities;
} ACMFunctionalDescriptor;
typedef struct
{
IADDescriptor iad;
InterfaceDescriptor cif;
CDCCSInterfaceDescriptor header;
CMFunctionalDescriptor callManagement;
ACMFunctionalDescriptor controlManagement;
CDCCSInterfaceDescriptor functionalDescriptor;
EndpointDescriptor cifin;
InterfaceDescriptor dif;
EndpointDescriptor in;
EndpointDescriptor out;
} CDCDescriptor;
typedef struct
{
InterfaceDescriptor msc;
EndpointDescriptor in;
EndpointDescriptor out;
} MSCDescriptor;
# 45 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h" 2
# 58 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h"
class USBDevice_
{
public:
USBDevice_();
bool configured();
void attach();
void detach();
void poll();
bool wakeupHost();
};
extern USBDevice_ USBDevice;
struct ring_buffer;
# 88 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h"
class Serial_ : public Stream
{
private:
int peek_buffer;
public:
Serial_() { peek_buffer = -1; };
void begin(unsigned long);
void begin(unsigned long, uint8_t);
void end(void);
virtual int available(void);
virtual int peek(void);
virtual int read(void);
virtual int availableForWrite(void);
virtual void flush(void);
virtual size_t write(uint8_t);
virtual size_t write(const uint8_t*, size_t);
using Print::write;
operator bool();
volatile uint8_t _rx_buffer_head;
volatile uint8_t _rx_buffer_tail;
unsigned char _rx_buffer[64];
# 127 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h"
int32_t readBreak();
uint32_t baud();
uint8_t stopbits();
uint8_t paritytype();
uint8_t numbits();
bool dtr();
bool rts();
enum {
ONE_STOP_BIT = 0,
ONE_AND_HALF_STOP_BIT = 1,
TWO_STOP_BITS = 2,
};
enum {
NO_PARITY = 0,
ODD_PARITY = 1,
EVEN_PARITY = 2,
MARK_PARITY = 3,
SPACE_PARITY = 4,
};
};
extern Serial_ Serial;
typedef struct
{
uint8_t bmRequestType;
uint8_t bRequest;
uint8_t wValueL;
uint8_t wValueH;
uint16_t wIndex;
uint16_t wLength;
} USBSetup;
int MSC_GetInterface(uint8_t* interfaceNum);
int MSC_GetDescriptor(int i);
bool MSC_Setup(USBSetup& setup);
bool MSC_Data(uint8_t rx,uint8_t tx);
int CDC_GetInterface(uint8_t* interfaceNum);
int CDC_GetDescriptor(int i);
bool CDC_Setup(USBSetup& setup);
# 194 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/USBAPI.h"
int USB_SendControl(uint8_t flags, const void* d, int len);
int USB_RecvControl(void* d, int len);
int USB_RecvControlLong(void* d, int len);
uint8_t USB_Available(uint8_t ep);
uint8_t USB_SendSpace(uint8_t ep);
int USB_Send(uint8_t ep, const void* data, int len);
int USB_Recv(uint8_t ep, void* data, int len);
int USB_Recv(uint8_t ep);
void USB_Flush(uint8_t ep);
# 234 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
uint16_t makeWord(uint16_t w);
uint16_t makeWord(byte h, byte l);
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
void noTone(uint8_t _pin);
long random(long);
long random(long, long);
void randomSeed(unsigned long);
long map(long, long, long, long, long);
# 1 ".../hardware/keyboardio/avr/variants/model01/pins_arduino.h" 1
# 116 ".../hardware/keyboardio/avr/variants/model01/pins_arduino.h"
static const uint8_t SDA = 2;
static const uint8_t SCL = 3;
static const uint8_t SS = 17;
static const uint8_t MOSI = 16;
static const uint8_t MISO = 14;
static const uint8_t SCK = 15;
static const uint8_t A0 = 18;
static const uint8_t A1 = 19;
static const uint8_t A2 = 20;
static const uint8_t A3 = 21;
static const uint8_t A4 = 22;
static const uint8_t A5 = 23;
static const uint8_t A6 = 24;
static const uint8_t A7 = 25;
static const uint8_t A8 = 26;
static const uint8_t A9 = 27;
static const uint8_t A10 = 28;
static const uint8_t A11 = 29;
extern const uint8_t __attribute__((__progmem__)) analog_pin_to_channel_PGM[];
# 258 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/Arduino.h" 2
# 4 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h" 2
extern "C" {
void loop();
void setup();
}
# 23 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h"
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Hardware-Model01/src/Kaleidoscope-Hardware-Model01.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-HIDAdaptor-KeyboardioHID/src/Kaleidoscope-HIDAdaptor-KeyboardioHID.h" 1
# 7 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Hardware-Model01/src/Kaleidoscope-Hardware-Model01.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioScanner/KeyboardioScanner.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioScanner/wire-protocol-constants.h" 1
# 5 ".../hardware/keyboardio/avr/libraries/KeyboardioScanner/KeyboardioScanner.h" 2
struct cRGB {
uint8_t b;
uint8_t g;
uint8_t r;
};
typedef union {
cRGB leds[32];
byte bytes[4][sizeof(cRGB) * 32/4];
} LEDData_t;
typedef union {
struct {
uint8_t row: 2,
col: 3,
keyState: 1,
keyEventsWaiting: 1,
eventReported: 1;
};
uint8_t val;
} key_t;
typedef union {
uint8_t rows[4];
uint32_t all;
} keydata_t;
class KeyboardioScanner {
public:
KeyboardioScanner(byte setAd01);
~KeyboardioScanner();
int readVersion();
byte setKeyscanInterval(byte delay);
int readKeyscanInterval();
byte setLEDSPIFrequency(byte frequency);
int readLEDSPIFrequency();
void sendLEDData();
void setOneLEDTo(byte led, cRGB color);
void setAllLEDsTo(cRGB color);
keydata_t getKeyData();
bool readKeys();
LEDData_t ledData;
uint8_t controllerAddress();
private:
int addr;
int ad01;
keydata_t keyData;
byte nextLEDBank = 0;
void sendLEDBank(byte bank);
int readRegister(uint8_t cmd);
};
# 8 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Hardware-Model01/src/Kaleidoscope-Hardware-Model01.h" 2
class Model01 {
public:
Model01(void);
void syncLeds(void);
void setCrgbAt(byte row, byte col, cRGB color);
void setCrgbAt(uint8_t i, cRGB crgb);
cRGB getCrgbAt(uint8_t i);
uint8_t getLedIndex(byte row, byte col);
void scanMatrix(void);
void readMatrix(void);
void actOnMatrixScan(void);
void setup();
void rebootBootloader();
void enableHighPowerLeds(void);
void enableScannerPower(void);
void setKeyscanInterval(uint8_t interval);
boolean ledPowerFault(void);
# 47 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Hardware-Model01/src/Kaleidoscope-Hardware-Model01.h"
void maskKey(byte row, byte col);
void unMaskKey(byte row, byte col);
bool isKeyMasked(byte row, byte col);
void maskHeldKeys(void);
keydata_t leftHandState;
keydata_t rightHandState;
keydata_t previousLeftHandState;
keydata_t previousRightHandState;
private:
static void actOnHalfRow(byte row, byte colState, byte colPrevState, byte startPos);
static bool isLEDChanged;
static KeyboardioScanner leftHand;
static KeyboardioScanner rightHand;
static keydata_t leftHandMask;
static keydata_t rightHandMask;
};
# 24 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_events.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/HIDTables.h" 1
# 5 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs_keyboard.h" 1
# 7 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs_sysctl.h" 1
# 8 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs_consumerctl.h" 1
# 9 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs_keymaps.h" 1
static const uint8_t MOMENTARY_OFFSET __attribute__((deprecated)) = 42;
static const uint8_t LAYER_SHIFT_OFFSET = 42;
# 10 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs_aliases.h" 1
# 12 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h"
# 39 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h"
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/LEDs.h" 1
enum KeyboardLeds : uint8_t {
LED_NUM_LOCK = (1 << 0),
LED_CAPS_LOCK = (1 << 1),
LED_SCROLL_LOCK = (1 << 2),
LED_COMPOSE = (1 << 3),
LED_KANA = (1 << 4),
LED_POWER = (1 << 5),
LED_SHIFT = (1 << 6),
LED_DO_NOT_DISTURB = (1 << 7),
};
# 40 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/AbsoluteMouse.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/AbsoluteMouse.h"
# 1 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/PluggableUSB.h" 1
# 28 ".../Scratch/Software/arduino/arduino-1.8.5/hardware/arduino/avr/cores/arduino/PluggableUSB.h"
class PluggableUSBModule {
public:
PluggableUSBModule(uint8_t numEps, uint8_t numIfs, uint8_t *epType) :
numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType)
{ }
protected:
virtual bool setup(USBSetup& setup) = 0;
virtual int getInterface(uint8_t* interfaceCount) = 0;
virtual int getDescriptor(USBSetup& setup) = 0;
virtual uint8_t getShortName(char *name) { name[0] = 'A'+pluggedInterface; return 1; }
uint8_t pluggedInterface;
uint8_t pluggedEndpoint;
const uint8_t numEndpoints;
const uint8_t numInterfaces;
const uint8_t *endpointType;
PluggableUSBModule *next = __null;
friend class PluggableUSB_;
};
class PluggableUSB_ {
public:
PluggableUSB_();
bool plug(PluggableUSBModule *node);
int getInterface(uint8_t* interfaceCount);
int getDescriptor(USBSetup& setup);
bool setup(USBSetup& setup);
void getShortName(char *iSerialNum);
private:
uint8_t lastIf;
uint8_t lastEp;
PluggableUSBModule* rootNode;
};
PluggableUSB_& PluggableUSB();
# 29 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/AbsoluteMouse.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/HID/src/HID.h" 1
# 62 ".../hardware/keyboardio/avr/libraries/HID/src/HID.h"
typedef struct {
uint8_t len;
uint8_t dtype;
uint8_t addr;
uint8_t versionL;
uint8_t versionH;
uint8_t country;
uint8_t desctype;
uint8_t descLenL;
uint8_t descLenH;
} HIDDescDescriptor;
typedef struct {
InterfaceDescriptor hid;
HIDDescDescriptor desc;
EndpointDescriptor in;
} HIDDescriptor;
class HIDSubDescriptor {
public:
HIDSubDescriptor *next = __null;
HIDSubDescriptor(const void *d, const uint16_t l) : data(d), length(l) { }
const void* data;
const uint16_t length;
};
class HID_ : public PluggableUSBModule {
public:
HID_(void);
int begin(void);
int SendReport(uint8_t id, const void* data, int len);
void AppendDescriptor(HIDSubDescriptor* node);
uint8_t getLEDs(void) { return setReportData.leds; };
protected:
int getInterface(uint8_t* interfaceCount);
int getDescriptor(USBSetup& setup);
bool setup(USBSetup& setup);
uint8_t getShortName(char* name);
private:
uint8_t epType[1];
HIDSubDescriptor* rootNode;
uint16_t descriptorSize;
uint8_t protocol;
uint8_t idle;
struct {
uint8_t reportId;
uint8_t leds;
} setReportData;
};
HID_& HID();
# 30 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/AbsoluteMouse.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/HID-Settings.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/HID-Settings.h"
# 31 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/AbsoluteMouse.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.h"
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MouseButtons.h" 1
# 32 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/DescriptorPrimitives.h" 1
# 33 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.h" 2
# 66 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.h"
typedef union {
struct {
uint8_t buttons;
uint16_t xAxis;
uint16_t yAxis;
int8_t wheel;
};
} HID_MouseAbsoluteReport_Data_t;
class AbsoluteMouseAPI {
public:
inline AbsoluteMouseAPI(void);
inline void begin(void);
inline void end(void);
inline void click(uint8_t b = (1 << 0));
inline void moveTo(uint16_t x, uint16_t y, signed char wheel = 0);
inline void move(int x, int y, signed char wheel = 0);
inline void press(uint8_t b = (1 << 0));
inline void release(uint8_t b = (1 << 0));
inline bool isPressed(uint8_t b = (1 << 0));
virtual void sendReport(void* data, int length);
protected:
uint16_t xAxis;
uint16_t yAxis;
uint8_t _buttons;
inline void buttons(uint8_t b);
inline int16_t qadd16(int16_t base, int16_t increment);
};
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.hpp" 1
# 24 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.hpp"
AbsoluteMouseAPI::AbsoluteMouseAPI(void): xAxis(0), yAxis(0), _buttons(0) {
}
void AbsoluteMouseAPI::buttons(uint8_t b) {
if (b != _buttons) {
_buttons = b;
moveTo(xAxis, yAxis, 0);
}
}
int16_t AbsoluteMouseAPI::qadd16(int16_t base, int16_t increment) {
if (increment < 0) {
if ((int16_t)0x8000 - increment > base)
base = 0x8000;
else
base += increment;
} else {
if ((int16_t)0x7FFF - increment < base)
base = 0x7FFF;
else
base += increment;
}
return base;
}
void AbsoluteMouseAPI::begin(void) {
end();
}
void AbsoluteMouseAPI::end(void) {
_buttons = 0;
moveTo(xAxis, yAxis, 0);
}
void AbsoluteMouseAPI::click(uint8_t b) {
_buttons = b;
moveTo(xAxis, yAxis, 0);
_buttons = 0;
moveTo(xAxis, yAxis, 0);
}
void AbsoluteMouseAPI::moveTo(uint16_t x, uint16_t y, signed char wheel) {
xAxis = x;
yAxis = y;
HID_MouseAbsoluteReport_Data_t report;
report.buttons = _buttons;
report.xAxis = x;
report.yAxis = y;
report.wheel = wheel;
sendReport(&report, sizeof(report));
}
void AbsoluteMouseAPI::move(int x, int y, signed char wheel) {
moveTo(qadd16(xAxis, x), qadd16(yAxis, y), wheel);
}
void AbsoluteMouseAPI::press(uint8_t b) {
buttons(_buttons | b);
}
void AbsoluteMouseAPI::release(uint8_t b) {
buttons(_buttons & ~b);
}
bool AbsoluteMouseAPI::isPressed(uint8_t b) {
if ((b & _buttons) > 0)
return true;
return false;
}
# 101 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/../DeviceAPIs/AbsoluteMouseAPI.h" 2
# 32 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/AbsoluteMouse.h" 2
class AbsoluteMouse_ : public AbsoluteMouseAPI {
public:
AbsoluteMouse_(void);
protected:
virtual void sendReport(void* data, int length);
};
extern AbsoluteMouse_ AbsoluteMouse;
# 44 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Mouse.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Mouse.h"
typedef union {
struct {
uint8_t buttons;
int8_t xAxis;
int8_t yAxis;
int8_t vWheel;
int8_t hWheel;
};
} HID_MouseReport_Data_t;
class Mouse_ {
public:
Mouse_(void);
void begin(void);
void end(void);
void click(uint8_t b = (1 << 0));
void move(signed char x, signed char y, signed char vWheel = 0, signed char hWheel = 0);
void press(uint8_t b = (1 << 0));
void release(uint8_t b = (1 << 0));
bool isPressed(uint8_t b = (1 << 0));
void sendReport(void);
void releaseAll(void);
protected:
HID_MouseReport_Data_t report;
HID_MouseReport_Data_t lastReport;
private:
void sendReportUnchecked(void);
};
extern Mouse_ Mouse;
# 45 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/ConsumerControl.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/ConsumerControl.h"
typedef union {
uint16_t keys[4];
struct {
uint16_t key1;
uint16_t key2;
uint16_t key3;
uint16_t key4;
};
} HID_ConsumerControlReport_Data_t;
class ConsumerControl_ {
public:
ConsumerControl_(void);
void begin(void);
void end(void);
void write(uint16_t m);
void press(uint16_t m);
void release(uint16_t m);
void releaseAll(void);
void sendReport(void);
protected:
HID_ConsumerControlReport_Data_t _report;
HID_ConsumerControlReport_Data_t _lastReport;
private:
void sendReportUnchecked(void);
};
extern ConsumerControl_ ConsumerControl;
# 46 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Gamepad.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Gamepad.h"
# 44 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Gamepad.h"
typedef union {
uint32_t buttons;
struct {
uint8_t button1 : 1;
uint8_t button2 : 1;
uint8_t button3 : 1;
uint8_t button4 : 1;
uint8_t button5 : 1;
uint8_t button6 : 1;
uint8_t button7 : 1;
uint8_t button8 : 1;
uint8_t button9 : 1;
uint8_t button10 : 1;
uint8_t button11 : 1;
uint8_t button12 : 1;
uint8_t button13 : 1;
uint8_t button14 : 1;
uint8_t button15 : 1;
uint8_t button16 : 1;
uint8_t button17 : 1;
uint8_t button18 : 1;
uint8_t button19 : 1;
uint8_t button20 : 1;
uint8_t button21 : 1;
uint8_t button22 : 1;
uint8_t button23 : 1;
uint8_t button24 : 1;
uint8_t button25 : 1;
uint8_t button26 : 1;
uint8_t button27 : 1;
uint8_t button28 : 1;
uint8_t button29 : 1;
uint8_t button30 : 1;
uint8_t button31 : 1;
uint8_t button32 : 1;
int16_t xAxis;
int16_t yAxis;
int16_t rxAxis;
int16_t ryAxis;
int8_t zAxis;
int8_t rzAxis;
uint8_t dPad1 : 4;
uint8_t dPad2 : 4;
};
} HID_GamepadReport_Data_t;
class Gamepad_ {
public:
Gamepad_(void);
void begin(void);
void end(void);
void write(void);
void press(uint8_t b);
void release(uint8_t b);
void releaseAll(void);
void buttons(uint32_t b);
void xAxis(int16_t a);
void yAxis(int16_t a);
void zAxis(int8_t a);
void rxAxis(int16_t a);
void ryAxis(int16_t a);
void rzAxis(int8_t a);
void dPad1(int8_t d);
void dPad2(int8_t d);
void sendReport(void* data, int length);
protected:
HID_GamepadReport_Data_t _report;
};
extern Gamepad_ Gamepad;
# 47 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/SystemControl.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/SystemControl.h"
typedef union {
uint8_t key;
} HID_SystemControlReport_Data_t;
class SystemControl_ {
public:
void begin(void);
void end(void);
void write(uint8_t s);
void press(uint8_t s);
void release(void);
void releaseAll(void);
void sendReport(void* data, int length);
SystemControl_(void);
protected:
};
extern SystemControl_ SystemControl;
# 48 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Keyboard.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Keyboard.h"
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/HIDAliases.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/HIDTables.h" 1
# 4 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/HIDAliases.h" 2
# 34 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/MultiReport/Keyboard.h" 2
typedef union {
struct {
uint8_t modifiers;
uint8_t keys[28 ];
};
uint8_t allkeys[1 + 28];
} HID_KeyboardReport_Data_t;
class Keyboard_ {
public:
Keyboard_(void);
void begin(void);
void end(void);
size_t press(uint8_t k);
size_t release(uint8_t k);
void releaseAll(void);
int sendReport(void);
boolean isModifierActive(uint8_t k);
boolean wasModifierActive(uint8_t k);
uint8_t getLEDs() { return HID().getLEDs(); };
HID_KeyboardReport_Data_t keyReport;
HID_KeyboardReport_Data_t lastKeyReport;
private:
int sendReportUnchecked(void);
};
extern Keyboard_ Keyboard;
# 49 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/SingleReport/SingleAbsoluteMouse.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/SingleReport/SingleAbsoluteMouse.h"
# 34 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/SingleReport/SingleAbsoluteMouse.h"
class SingleAbsoluteMouse_ : public PluggableUSBModule, public AbsoluteMouseAPI
{
public:
SingleAbsoluteMouse_(void);
uint8_t getLeds(void);
uint8_t getProtocol(void);
protected:
int getInterface(uint8_t* interfaceCount);
int getDescriptor(USBSetup& setup);
bool setup(USBSetup& setup);
uint8_t epType[1];
uint8_t protocol;
uint8_t idle;
virtual inline void sendReport(void* data, int length) override;
};
extern SingleAbsoluteMouse_ SingleAbsoluteMouse;
# 51 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/BootKeyboard/BootKeyboard.h" 1
# 25 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/BootKeyboard/BootKeyboard.h"
# 34 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/BootKeyboard/BootKeyboard.h"
typedef union {
struct {
uint8_t modifiers;
uint8_t keycodes[6];
};
uint8_t keys[7];
} HID_BootKeyboardReport_Data_t;
class BootKeyboard_ : public PluggableUSBModule {
public:
BootKeyboard_(void);
size_t press(uint8_t);
void begin(void);
void end(void);
size_t release(uint8_t);
void releaseAll(void);
int sendReport(void);
boolean isModifierActive(uint8_t k);
boolean wasModifierActive(uint8_t k);
uint8_t getLeds(void);
uint8_t getProtocol(void);
void setProtocol(uint8_t protocol);
uint8_t default_protocol = 1;
protected:
HID_BootKeyboardReport_Data_t _keyReport, _lastKeyReport;
int getInterface(uint8_t* interfaceCount);
int getDescriptor(USBSetup& setup);
bool setup(USBSetup& setup);
uint8_t epType[1];
uint8_t protocol;
uint8_t idle;
uint8_t leds;
};
extern BootKeyboard_ BootKeyboard;
# 52 ".../hardware/keyboardio/avr/libraries/KeyboardioHID/src/KeyboardioHID.h" 2
# 17 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_defs.h" 2
typedef union Key_ {
struct {
uint8_t keyCode;
uint8_t flags;
};
uint16_t raw;
inline bool operator==(uint16_t rhs) {
return this->raw == rhs;
}
inline bool operator==(const Key_ rhs) {
return this->raw == rhs.raw;
}
inline Key_& operator=(uint16_t raw) {
this->raw = raw;
return *this;
}
inline bool operator!=(const Key_& rhs) {
return !(*this == rhs);
}
inline bool operator>=(uint16_t raw) {
return this->raw >= raw;
}
inline bool operator<=(uint16_t raw) {
return this->raw <= raw;
}
inline bool operator>(uint16_t raw) {
return this->raw > raw;
}
inline bool operator<(uint16_t raw) {
return this->raw < raw;
}
inline bool operator>=(const Key_& other) {
return this->raw >= other.raw;
}
inline bool operator<=(const Key_& other) {
return this->raw <= other.raw;
}
inline bool operator>(const Key_& other) {
return this->raw > other.raw;
}
inline bool operator<(const Key_& other) {
return this->raw < other.raw;
}
} Key;
# 6 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_events.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/keyswitch_state.h" 1
# 41 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/keyswitch_state.h"
inline uint8_t __attribute__((deprecated("Use keyWasPressed instead"))) key_was_pressed(uint8_t keyState) {
return ((keyState) & 1);
}
inline uint8_t __attribute__((deprecated("Use keyIsPressed instead"))) key_is_pressed(uint8_t keyState) {
return ((keyState) & 2);
}
inline uint8_t __attribute__((deprecated("Use keyToggledOn instead"))) key_toggled_on(uint8_t keyState) {
return (((keyState) & 2) && ! ((keyState) & 1));
}
inline uint8_t __attribute__((deprecated("Use keyToggledOff instead"))) key_toggled_off(uint8_t keyState) {
return (((keyState) & 1) && ! ((keyState) & 2));
}
# 7 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_events.h" 2
extern const Key keymaps[][4][16];
# 47 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/key_events.h"
void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState);
# 25 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/kaleidoscope/hid.h" 1
namespace kaleidoscope {
namespace hid {
extern void initializeKeyboard();
extern void pressKey(Key mappedKey);
extern void releaseKey(Key mappedKey);
extern void releaseAllKeys();
extern void pressRawKey(Key mappedKey);
extern void releaseRawKey(Key mappedKey);
extern void sendKeyboardReport();
extern boolean isModifierKeyActive(Key mappedKey);
extern boolean wasModifierKeyActive(Key mappedKey);
extern uint8_t getKeyboardLEDs();
extern void initializeConsumerControl();
extern void pressConsumerControl(Key mappedKey);
extern void releaseConsumerControl(Key mappedKey);
extern void initializeSystemControl();
extern void pressSystemControl(Key mappedKey);
extern void releaseSystemControl(Key mappedKey);
extern void initializeMouse();
extern void moveMouse(signed char x, signed char y, signed char vWheel = 0, signed char hWheel = 0);
extern void clickMouseButtons(uint8_t buttons);
extern void pressMouseButtons(uint8_t buttons);
extern void releaseMouseButtons(uint8_t buttons);
extern void releaseAllMouseButtons(void);
extern void sendMouseReport(void);
extern void initializeAbsoluteMouse();
extern void moveAbsoluteMouse(signed char x, signed char y, signed char wheel);
extern void moveAbsoluteMouseTo(uint16_t x, uint16_t y, signed char wheel);
extern void clickAbsoluteMouseButtons(uint8_t buttons);
extern void pressAbsoluteMouseButtons(uint8_t buttons);
extern void releaseAbsoluteMouseButtons(uint8_t buttons);
}
};
# 26 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/layers.h" 1
# 15 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/layers.h"
class Layer_ {
public:
Layer_(void);
# 48 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/layers.h"
static Key lookup(byte row, byte col) {
return liveCompositeKeymap[row][col];
}
static Key lookupOnActiveLayer(byte row, byte col) {
uint8_t layer = activeLayers[row][col];
return (*getKey)(layer, row, col);
}
static uint8_t lookupActiveLayer(byte row, byte col) {
return activeLayers[row][col];
}
static void on(uint8_t layer);
static void off(uint8_t layer);
static void move(uint8_t layer);
static uint8_t top(void) {
return highestLayer;
}
static void next(void);
static void previous(void);
static boolean isOn(uint8_t layer);
static void defaultLayer(uint8_t layer);
static uint8_t defaultLayer(void);
static uint32_t getLayerState(void);
static Key eventHandler(Key mappedKey, byte row, byte col, uint8_t keyState);
static Key(*getKey)(uint8_t layer, byte row, byte col);
static Key getKeyFromPROGMEM(uint8_t layer, byte row, byte col);
static void updateLiveCompositeKeymap(byte row, byte col);
static void updateActiveLayers(void);
private:
static void updateHighestLayer(void);
static uint8_t highestLayer;
static Key liveCompositeKeymap[4][16];
static uint8_t activeLayers[4][16];
};
extern Layer_ Layer;
# 27 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h" 2
extern Model01 KeyboardHardware;
# 66 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h"
const uint8_t KEYMAP_SIZE
__attribute__((deprecated("Kaleidoscope.setup() does not require KEYMAP_SIZE anymore."))) = 0;
class Kaleidoscope_;
class KaleidoscopePlugin {
friend class Kaleidoscope_;
protected:
# 90 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h"
virtual void begin(void) { };
};
class Kaleidoscope_ {
public:
Kaleidoscope_(void);
void setup(const byte keymap_count)
__attribute__((deprecated("The keymap_count argument (and the KEYMAP_SIZE macro) are unused, and can be safely removed."))) {
setup();
}
void setup(void);
void loop(void);
inline void use() {
}
inline void use(KaleidoscopePlugin *p) {
p->begin();
}
inline void use(int) {
}
template <typename... Plugins>
void use(KaleidoscopePlugin *first, Plugins&&... plugins) {
use(first);
use(plugins...);
}
# 147 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h"
typedef Key(*eventHandlerHook)(Key mappedKey, byte row, byte col, uint8_t keyState);
static eventHandlerHook eventHandlers[64];
static void replaceEventHandlerHook(eventHandlerHook oldHook, eventHandlerHook newHook);
static void appendEventHandlerHook(eventHandlerHook hook);
static void useEventHandlerHook(eventHandlerHook hook);
typedef void (*loopHook)(bool postClear);
static loopHook loopHooks[64];
static void replaceLoopHook(loopHook oldHook, loopHook newHook);
static void appendLoopHook(loopHook hook);
static void useLoopHook(loopHook hook);
static bool focusHook(const char *command);
};
extern Kaleidoscope_ Kaleidoscope;
# 173 ".../hardware/keyboardio/avr/libraries/Kaleidoscope/src/Kaleidoscope.h"
void event_handler_hook_use(Kaleidoscope_::eventHandlerHook hook)
__attribute__((deprecated("Use Kaleidoscope.useEventHandlerHook instead")));
void loop_hook_use(Kaleidoscope_::loopHook hook)
__attribute__((deprecated("Use Kaleidoscope.useLoopHook instead")));
void __USE_PLUGINS(KaleidoscopePlugin *plugin, ...)
__attribute__((deprecated("Use Kaleidoscope.use(...) instead")));
# 18 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-MouseKeys/src/Kaleidoscope-MouseKeys.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-MouseKeys/src/MouseKeyDefs.h" 1
# 5 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-MouseKeys/src/Kaleidoscope-MouseKeys.h" 2
class MouseKeys_ : public KaleidoscopePlugin {
public:
MouseKeys_(void);
void begin(void) final;
static uint8_t speed;
static uint16_t speedDelay;
static uint8_t accelSpeed;
static uint16_t accelDelay;
static uint8_t wheelSpeed;
static uint16_t wheelDelay;
private:
static uint8_t mouseMoveIntent;
static uint32_t endTime;
static uint32_t accelEndTime;
static uint32_t wheelEndTime;
static void scrollWheel(uint8_t keyCode);
static void loopHook(bool postClear);
static Key eventHandlerHook(Key mappedKey, byte row, byte col, uint8_t keyState);
};
extern MouseKeys_ MouseKeys;
# 21 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Macros/src/Kaleidoscope-Macros.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Macros/src/MacroKeyDefs.h" 1
# 6 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Macros/src/Kaleidoscope-Macros.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Macros/src/MacroSteps.h" 1
typedef enum {
MACRO_ACTION_END,
MACRO_ACTION_STEP_INTERVAL,
MACRO_ACTION_STEP_WAIT,
MACRO_ACTION_STEP_KEYDOWN,
MACRO_ACTION_STEP_KEYUP,
MACRO_ACTION_STEP_TAP,
MACRO_ACTION_STEP_KEYCODEDOWN,
MACRO_ACTION_STEP_KEYCODEUP,
MACRO_ACTION_STEP_TAPCODE,
} MacroActionStepType;
typedef uint8_t macro_t;
# 38 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Macros/src/MacroSteps.h"
__attribute__((deprecated("END is no longer required to end macros"))) const MacroActionStepType END = MACRO_ACTION_END;
# 7 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-Macros/src/Kaleidoscope-Macros.h" 2
const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState);
class Macros_ : public KaleidoscopePlugin {
public:
Macros_(void);
void begin(void) final;
void play(const macro_t *macro_p);
inline const macro_t *type() {
return 0;
}
const macro_t *type(const char *string);
template <typename... Strings>
const macro_t *type(const char *first, Strings&&... strings) {
type(first);
return type(strings...);
}
static byte row, col;
private:
Key lookupAsciiCode(uint8_t ascii_code);
};
extern Macros_ Macros;
# 24 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDControl/src/Kaleidoscope-LEDControl.h" 1
# 12 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDControl/src/Kaleidoscope-LEDControl.h"
namespace kaleidoscope {
# 25 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDControl/src/Kaleidoscope-LEDControl.h"
class LEDMode : public KaleidoscopePlugin {
friend class LEDControl;
protected:
# 36 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDControl/src/Kaleidoscope-LEDControl.h"
virtual void setup(void) {}
# 53 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDControl/src/Kaleidoscope-LEDControl.h"
virtual void onActivate(void) {}
virtual void update(void) {}
# 72 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDControl/src/Kaleidoscope-LEDControl.h"
virtual void refreshAt(byte row, byte col) {}
public:
void activate(void);
void begin(void) final;
};
class LEDControl : public KaleidoscopePlugin {
public:
LEDControl(void);
void begin(void) final;
static void next_mode(void);
static void prev_mode(void);
static void setup(void);
static void update(void) {
if (modes[mode])
modes[mode]->update();
}
static void refreshAt(byte row, byte col) {
if (modes[mode])
modes[mode]->refreshAt(row, col);
}
static void set_mode(uint8_t mode);
static uint8_t get_mode_index();
static LEDMode *get_mode();
static void refreshAll() {
if (paused)
return;
set_all_leds_to({0, 0, 0});
if (modes[mode])
modes[mode]->onActivate();
}
static int8_t mode_add(LEDMode *mode);
static void setCrgbAt(uint8_t i, cRGB crgb);
static void setCrgbAt(byte row, byte col, cRGB color);
static cRGB getCrgbAt(uint8_t i);
static void syncLeds(void);
static void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b);
static void set_all_leds_to(cRGB color);
static void activate(LEDMode *mode);
static uint16_t syncDelay;
static bool paused;
static bool focusHook(const char *command);
private:
static uint32_t syncTimer;
static LEDMode *modes[24];
static uint8_t mode;
static Key eventHandler(Key mappedKey, byte row, byte col, uint8_t keyState);
static void loopHook(bool postClear);
};
}
extern kaleidoscope::LEDControl LEDControl;
# 27 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-NumPad/src/Kaleidoscope-NumPad.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDControl/src/LEDUtils.h" 1
cRGB breath_compute(void);
cRGB hsvToRgb(uint16_t h, uint16_t s, uint16_t v);
# 6 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-NumPad/src/Kaleidoscope-NumPad.h" 2
class NumPad_ : public KaleidoscopePlugin {
public:
NumPad_(void) {}
void begin(void) final;
static uint8_t numPadLayer;
private:
static void loopHook(const bool postClear);
static byte row, col;
static bool cleanupDone;
static bool originalNumLockState;
};
extern NumPad_ NumPad;
# 30 "" 2
# 39 ""
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-SolidColor/src/Kaleidoscope-LEDEffect-SolidColor.h" 1
namespace kaleidoscope {
class LEDSolidColor : public LEDMode {
public:
LEDSolidColor(uint8_t r, uint8_t g, uint8_t b);
protected:
void onActivate(void) final;
void refreshAt(byte row, byte col) final;
private:
uint8_t r, g, b;
};
}
# 40 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-Breathe/src/Kaleidoscope-LEDEffect-Breathe.h" 1
namespace kaleidoscope {
class LEDBreatheEffect : public LEDMode {
public:
LEDBreatheEffect(void) {}
protected:
void update(void) final;
};
}
extern kaleidoscope::LEDBreatheEffect LEDBreatheEffect;
# 43 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-Chase/src/Kaleidoscope-LEDEffect-Chase.h" 1
namespace kaleidoscope {
class LEDChaseEffect : public LEDMode {
public:
LEDChaseEffect(void) {}
protected:
void update(void) final;
private:
uint8_t pos = 0;
int8_t chase_sign = 1;
uint8_t chase_pixels = 5;
uint8_t current_chase_counter = 0;
static const uint8_t chase_threshold = 20;
};
}
extern kaleidoscope::LEDChaseEffect LEDChaseEffect;
# 46 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-Rainbow/src/Kaleidoscope-LEDEffect-Rainbow.h" 1
namespace kaleidoscope {
class LEDRainbowEffect : public LEDMode {
public:
LEDRainbowEffect(void) {}
void brightness(byte);
void update(void) final;
private:
uint16_t rainbow_hue = 0;
uint8_t rainbow_steps = 1;
uint16_t rainbow_current_ticks = 0;
uint16_t rainbow_ticks = 10;
byte rainbow_saturation = 255;
byte rainbow_value = 50;
};
class LEDRainbowWaveEffect : public LEDMode {
public:
LEDRainbowWaveEffect(void) {}
void brightness(byte);
void update(void) final;
private:
uint16_t rainbow_hue = 0;
uint8_t rainbow_wave_steps = 1;
uint16_t rainbow_current_ticks = 0;
uint16_t rainbow_wave_ticks = 10;
byte rainbow_saturation = 255;
byte rainbow_value = 50;
};
}
extern kaleidoscope::LEDRainbowEffect LEDRainbowEffect;
extern kaleidoscope::LEDRainbowWaveEffect LEDRainbowWaveEffect;
# 49 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-Stalker/src/Kaleidoscope-LED-Stalker.h" 1
# 19 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-Stalker/src/Kaleidoscope-LED-Stalker.h"
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-Stalker/src/Kaleidoscope/LED-Stalker.h" 1
# 19 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-Stalker/src/Kaleidoscope/LED-Stalker.h"
namespace kaleidoscope {
class StalkerEffect : public LEDMode {
public:
class ColorComputer {
public:
virtual cRGB compute(uint8_t *step) = 0;
};
StalkerEffect(void) {}
static ColorComputer *variant;
static uint16_t step_length;
protected:
void setup(void) final;
void onActivate(void) final;
void update(void) final;
private:
static uint32_t step_end_time_;
static uint8_t map_[4][16];
static Key eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_state);
};
namespace stalker {
class Haunt : public StalkerEffect::ColorComputer {
public:
explicit Haunt(const cRGB highlight_color);
Haunt(void) : Haunt((cRGB){0x80, 0x80, 0x40}) {}
cRGB compute(uint8_t *step) final;
private:
static cRGB highlight_color_;
};
class BlazingTrail : public StalkerEffect::ColorComputer {
public:
BlazingTrail(void);
cRGB compute(uint8_t *step) final;
};
}
}
extern kaleidoscope::StalkerEffect StalkerEffect;
# 21 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-Stalker/src/Kaleidoscope-LED-Stalker.h" 2
# 52 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope-LED-AlphaSquare.h" 1
# 19 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope-LED-AlphaSquare.h"
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope/LED-AlphaSquare.h" 1
# 19 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope/LED-AlphaSquare.h"
# 35 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope/LED-AlphaSquare.h"
namespace kaleidoscope {
class AlphaSquare : public KaleidoscopePlugin {
public:
AlphaSquare(void);
void begin(void) final;
static void display(Key key, uint8_t row, uint8_t col, cRGB key_color);
static void display(Key key, uint8_t row, uint8_t col);
static void display(Key key) {
display(key, 0, 2);
}
static void display(Key key, uint8_t col) {
display(key, 0, col);
}
static void display(uint16_t symbol, uint8_t row, uint8_t col, cRGB key_color);
static void display(uint16_t symbol, uint8_t row, uint8_t col);
static void display(uint16_t symbol) {
display(symbol, 0, 2);
}
static void display(uint16_t symbol, uint8_t col) {
display(symbol, 0, col);
}
static void clear(Key key, uint8_t row, uint8_t col) {
display(key, row, col, {0, 0, 0});
}
static void clear(Key key, uint8_t col) {
clear(key, 0, col);
}
static void clear(Key key) {
clear(key, 0, 2);
}
static void clear(uint16_t symbol, uint8_t row, uint8_t col) {
display(symbol, row, col, {0, 0, 0});
}
static void clear(uint16_t symbol, uint8_t col) {
clear(symbol, 0, col);
}
static void clear(uint16_t symbol) {
clear(symbol, 0, 2);
}
static cRGB color;
};
}
extern kaleidoscope::AlphaSquare AlphaSquare;
# 22 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope-LED-AlphaSquare.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope/AlphaSquare-Effect.h" 1
# 19 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope/AlphaSquare-Effect.h"
namespace kaleidoscope {
class AlphaSquareEffect : public LEDMode {
public:
AlphaSquareEffect(void) {}
static uint16_t length;
protected:
void setup(void) final;
void update(void) final;
private:
static uint32_t end_time_left_, end_time_right_;
static Key last_key_left_, last_key_right_;
static Key eventHandlerHook(Key key, uint8_t row, uint8_t col, uint8_t key_state);
};
}
extern kaleidoscope::AlphaSquareEffect AlphaSquareEffect;
# 23 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope-LED-AlphaSquare.h" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope/AlphaSquare-Symbols.h" 1
# 19 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope/AlphaSquare-Symbols.h"
namespace kaleidoscope {
namespace alpha_square {
namespace symbols {
static constexpr uint16_t Lambda = (uint16_t) ( 1 << 0 | 0 << 1 | 0 << 2 | 0 << 3 | 0 << 4 | 1 << 5 | 0 << 6 | 0 << 7 | 0 << 8 | 1 << 9 | 1 << 10 | 0 << 11 | 1 << 12 | 0 << 13 | 0 << 14 | 1 << 15 )
;
}
}
}
# 23 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LED-AlphaSquare/src/Kaleidoscope-LED-AlphaSquare.h" 2
# 55 "" 2
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/Kaleidoscope-LEDEffect-FunctionalColor.h" 1
# 1 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/colors.h" 1
namespace kaleidoscope {
namespace LEDEffect_FunctionalColor {
constexpr cRGB warmwhite = (cRGB){200, 250, 255};
constexpr cRGB aliceblue = (cRGB){255, 248, 240};
constexpr cRGB antiquewhite = (cRGB){215, 235, 250};
constexpr cRGB aqua = (cRGB){255, 255, 0};
constexpr cRGB aquamarine = (cRGB){212, 255, 127};
constexpr cRGB azure = (cRGB){255, 255, 240};
constexpr cRGB beige = (cRGB){220, 245, 245};
constexpr cRGB bisque = (cRGB){196, 228, 255};
constexpr cRGB black = (cRGB){0, 0, 0};
constexpr cRGB blanchedalmond = (cRGB){205, 235, 255};
constexpr cRGB blue = (cRGB){255, 0, 0};
constexpr cRGB blueviolet = (cRGB){226, 43, 138};
constexpr cRGB brown = (cRGB){42, 42, 165};
constexpr cRGB burlywood = (cRGB){135, 184, 222};
constexpr cRGB cadetblue = (cRGB){160, 158, 95};
constexpr cRGB chartreuse = (cRGB){0, 255, 127};
constexpr cRGB chocolate = (cRGB){30, 105, 210};
constexpr cRGB coral = (cRGB){80, 127, 255};
constexpr cRGB cornflowerblue = (cRGB){237, 149, 100};
constexpr cRGB cornsilk = (cRGB){220, 248, 255};
constexpr cRGB crimson = (cRGB){60, 20, 220};
constexpr cRGB cyan = (cRGB){255, 255, 0};
constexpr cRGB darkblue = (cRGB){139, 0, 0};
constexpr cRGB darkcyan = (cRGB){139, 139, 0};
constexpr cRGB darkgoldenrod = (cRGB){11, 134, 184};
constexpr cRGB darkgray = (cRGB){169, 169, 169};
constexpr cRGB darkgrey = (cRGB){169, 169, 169};
constexpr cRGB darkgreen = (cRGB){0, 100, 0};
constexpr cRGB darkkhaki = (cRGB){107, 183, 189};
constexpr cRGB darkmagenta = (cRGB){139, 0, 139};
constexpr cRGB darkolivegreen = (cRGB){47, 107, 85};
constexpr cRGB darkorange = (cRGB){0, 140, 255};
constexpr cRGB darkorchid = (cRGB){204, 50, 153};
constexpr cRGB darkred = (cRGB){0, 0, 139};
constexpr cRGB darksalmon = (cRGB){122, 150, 233};
constexpr cRGB darkseagreen = (cRGB){143, 188, 143};
constexpr cRGB darkslateblue = (cRGB){139, 61, 72};
constexpr cRGB darkslategray = (cRGB){79, 79, 47};
constexpr cRGB darkslategrey = (cRGB){79, 79, 47};
constexpr cRGB darkturquoise = (cRGB){209, 206, 0};
constexpr cRGB darkviolet = (cRGB){211, 0, 148};
constexpr cRGB deeppink = (cRGB){147, 20, 255};
constexpr cRGB deepskyblue = (cRGB){255, 191, 0};
constexpr cRGB dimgray = (cRGB){105, 105, 105};
constexpr cRGB dimgrey = (cRGB){105, 105, 105};
constexpr cRGB dodgerblue = (cRGB){255, 144, 30};
constexpr cRGB firebrick = (cRGB){34, 34, 178};
constexpr cRGB floralwhite = (cRGB){240, 250, 255};
constexpr cRGB forestgreen = (cRGB){34, 139, 34};
constexpr cRGB fuchsia = (cRGB){255, 0, 255};
constexpr cRGB gainsboro = (cRGB){220, 220, 220};
constexpr cRGB ghostwhite = (cRGB){255, 248, 248};
constexpr cRGB gold = (cRGB){0, 215, 255};
constexpr cRGB goldenrod = (cRGB){32, 165, 218};
constexpr cRGB gray = (cRGB){128, 128, 128};
constexpr cRGB grey = (cRGB){128, 128, 128};
constexpr cRGB green = (cRGB){0, 128, 0};
constexpr cRGB greenyellow = (cRGB){47, 255, 173};
constexpr cRGB honeydew = (cRGB){240, 255, 240};
constexpr cRGB hotpink = (cRGB){180, 105, 255};
constexpr cRGB indianred = (cRGB){92, 92, 205};
constexpr cRGB indigo = (cRGB){130, 0, 75};
constexpr cRGB ivory = (cRGB){240, 255, 255};
constexpr cRGB khaki = (cRGB){140, 230, 240};
constexpr cRGB lavender = (cRGB){250, 230, 230};
constexpr cRGB lavenderblush = (cRGB){245, 240, 255};
constexpr cRGB lawngreen = (cRGB){0, 252, 124};
constexpr cRGB lemonchiffon = (cRGB){205, 250, 255};
constexpr cRGB lightblue = (cRGB){230, 216, 173};
constexpr cRGB lightcoral = (cRGB){128, 128, 240};
constexpr cRGB lightcyan = (cRGB){255, 255, 224};
constexpr cRGB lightgoldenrodyellow = (cRGB){210, 250, 250};
constexpr cRGB lightgray = (cRGB){211, 211, 211};
constexpr cRGB lightgrey = (cRGB){211, 211, 211};
constexpr cRGB lightgreen = (cRGB){144, 238, 144};
constexpr cRGB lightpink = (cRGB){193, 182, 255};
constexpr cRGB lightsalmon = (cRGB){122, 160, 255};
constexpr cRGB lightseagreen = (cRGB){170, 178, 32};
constexpr cRGB lightskyblue = (cRGB){250, 206, 135};
constexpr cRGB lightslategray = (cRGB){153, 136, 119};
constexpr cRGB lightslategrey = (cRGB){153, 136, 119};
constexpr cRGB lightsteelblue = (cRGB){222, 196, 176};
constexpr cRGB lightyellow = (cRGB){224, 255, 255};
constexpr cRGB lime = (cRGB){0, 255, 0};
constexpr cRGB limegreen = (cRGB){50, 205, 50};
constexpr cRGB linen = (cRGB){230, 240, 250};
constexpr cRGB magenta = (cRGB){255, 0, 255};
constexpr cRGB maroon = (cRGB){0, 0, 128};
constexpr cRGB mediumaquamarine = (cRGB){170, 205, 102};
constexpr cRGB mediumblue = (cRGB){205, 0, 0};
constexpr cRGB mediumorchid = (cRGB){211, 85, 186};
constexpr cRGB mediumpurple = (cRGB){219, 112, 147};
constexpr cRGB mediumseagreen = (cRGB){113, 179, 60};
constexpr cRGB mediumslateblue = (cRGB){238, 104, 123};
constexpr cRGB mediumspringgreen = (cRGB){154, 250, 0};
constexpr cRGB mediumturquoise = (cRGB){204, 209, 72};
constexpr cRGB mediumvioletred = (cRGB){133, 21, 199};
constexpr cRGB midnightblue = (cRGB){112, 25, 25};
constexpr cRGB mintcream = (cRGB){250, 255, 245};
constexpr cRGB mistyrose = (cRGB){225, 228, 255};
constexpr cRGB moccasin = (cRGB){181, 228, 255};
constexpr cRGB navajowhite = (cRGB){173, 222, 255};
constexpr cRGB navy = (cRGB){128, 0, 0};
constexpr cRGB oldlace = (cRGB){230, 245, 253};
constexpr cRGB olive = (cRGB){0, 128, 128};
constexpr cRGB olivedrab = (cRGB){35, 142, 107};
constexpr cRGB orange = (cRGB){0, 165, 255};
constexpr cRGB orangered = (cRGB){0, 100, 255};
constexpr cRGB orchid = (cRGB){214, 112, 218};
constexpr cRGB palegoldenrod = (cRGB){170, 232, 238};
constexpr cRGB palegreen = (cRGB){152, 251, 152};
constexpr cRGB paleturquoise = (cRGB){238, 238, 175};
constexpr cRGB palevioletred = (cRGB){147, 112, 219};
constexpr cRGB papayawhip = (cRGB){213, 239, 255};
constexpr cRGB peachpuff = (cRGB){185, 218, 255};
constexpr cRGB peru = (cRGB){63, 133, 205};
constexpr cRGB pink = (cRGB){203, 192, 255};
constexpr cRGB plum = (cRGB){221, 160, 221};
constexpr cRGB powderblue = (cRGB){230, 224, 176};
constexpr cRGB purple = (cRGB){128, 0, 128};
constexpr cRGB rebeccapurple = (cRGB){153, 51, 102};
constexpr cRGB red = (cRGB){0, 0, 255};
constexpr cRGB rosybrown = (cRGB){143, 143, 188};
constexpr cRGB royalblue = (cRGB){225, 105, 65};
constexpr cRGB saddlebrown = (cRGB){19, 69, 139};
constexpr cRGB salmon = (cRGB){114, 128, 250};
constexpr cRGB sandybrown = (cRGB){96, 164, 244};
constexpr cRGB seagreen = (cRGB){87, 139, 46};
constexpr cRGB seashell = (cRGB){238, 245, 255};
constexpr cRGB sienna = (cRGB){45, 82, 160};
constexpr cRGB silver = (cRGB){192, 192, 192};
constexpr cRGB skyblue = (cRGB){235, 206, 135};
constexpr cRGB slateblue = (cRGB){205, 90, 106};
constexpr cRGB slategray = (cRGB){144, 128, 112};
constexpr cRGB slategrey = (cRGB){144, 128, 112};
constexpr cRGB snow = (cRGB){250, 250, 255};
constexpr cRGB springgreen = (cRGB){127, 255, 0};
constexpr cRGB steelblue = (cRGB){180, 130, 70};
constexpr cRGB tan = (cRGB){140, 180, 210};
constexpr cRGB teal = (cRGB){128, 128, 0};
constexpr cRGB thistle = (cRGB){216, 191, 216};
constexpr cRGB tomato = (cRGB){71, 99, 255};
constexpr cRGB turquoise = (cRGB){208, 224, 64};
constexpr cRGB violet = (cRGB){238, 130, 238};
constexpr cRGB wheat = (cRGB){179, 222, 245};
constexpr cRGB white = (cRGB){255, 255, 255};
constexpr cRGB whitesmoke = (cRGB){245, 245, 245};
constexpr cRGB yellow = (cRGB){0, 255, 255};
constexpr cRGB yellowgreen = (cRGB){50, 205, 154};
# 203 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/colors.h"
}
}
# 7 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/Kaleidoscope-LEDEffect-FunctionalColor.h" 2
namespace kaleidoscope {
class LEDFunctionalColorCB : public LEDMode {
public:
typedef byte & (*CBLookup)(const Key &);
LEDFunctionalColorCB(uint8_t fLayer,
CBLookup cbLookup,
cRGB *palette,
uint8_t nPaletteEntries);
LEDFunctionalColorCB(void);
uint8_t functionLayer = 2;
# 34 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/Kaleidoscope-LEDEffect-FunctionalColor.h"
void dimPalette(byte brightness);
void setAllPalette(const cRGB &color, byte brightness = 15);
void setPaletteEntryColor(byte paletteId, const cRGB &color, byte brightness = 15);
void setKeyColor(const Key &k, byte paletteId, byte brightness = 15);
private:
uint16_t current_key = 0;
uint16_t current_row = 0;
uint16_t current_col = 0;
uint16_t current_color = 0;
uint8_t last_layer = 0;
cRGB *palette_ = nullptr;
uint8_t nPaletteEntries_ = 0;
CBLookup cbLookup_ = nullptr;
protected:
void onActivate(void) final;
void update(void) final;
cRGB dim(const cRGB &color, byte brightness);
void setKeyLed(uint8_t r, uint8_t c);
};
# 101 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/Kaleidoscope-LEDEffect-FunctionalColor.h"
class LEDFunctionalColorRGB : public LEDMode {
public:
typedef cRGB & (*RGBLookup)(const Key &);
LEDFunctionalColorRGB(uint8_t fLayer,
RGBLookup rgbLookup);
LEDFunctionalColorRGB(void);
uint8_t functionLayer = 2;
# 123 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/Kaleidoscope-LEDEffect-FunctionalColor.h"
void setKeyColor(const Key &k, const cRGB &color);
private:
uint16_t current_key = 0;
uint16_t current_row = 0;
uint16_t current_col = 0;
uint16_t current_color = 0;
uint8_t last_layer = 0;
RGBLookup rgbLookup_ = nullptr;
protected:
void onActivate(void) final;
void update(void) final;
void setKeyLed(uint8_t r, uint8_t c);
};
# 165 ".../hardware/keyboardio/avr/libraries/Kaleidoscope-LEDEffect-FunctionalColor/src/Kaleidoscope-LEDEffect-FunctionalColor.h"
}
# 63 "" 2
# 80 ".../build/kaleidoscope.firmware_Model01-Firmware.ino.cpp"
# 76 ""
enum { MACRO_VERSION_INFO,
MACRO_ANY
};
# 126 ""
enum { QWERTY, NUMPAD, FUNCTION };
const Key keymaps[][4][16] __attribute__((__progmem__)) = {
[QWERTY] = { {(Key){ .raw = 0xffff }, (Key) { 0x1E, 0 }, (Key) { 0x1F, 0 }, (Key) { 0x20, 0 }, (Key) { 0x21, 0 }, (Key) { 0x22, 0 }, (Key) { 0, 0 | 64 | 2 | 1 }, (Key) { 0xE0, 0 }, (Key) { 0xE4, 0 }, (Key){ MACRO_ANY, 0|64|32 }, (Key) { 0x23, 0 }, (Key) { 0x24, 0 }, (Key) { 0x25, 0 }, (Key) { 0x26, 0 }, (Key) { 0x27, 0 }, (Key){ NUMPAD, 0 | 64 | 4 }}, {(Key) { 0x35, 0 }, (Key) { 0x14, 0 }, (Key) { 0x1A, 0 }, (Key) { 0x08, 0 }, (Key) { 0x15, 0 }, (Key) { 0x17, 0 }, (Key) { 0x2B, 0 }, (Key) { 0x2A, 0 }, (Key) { 0x2C, 0 }, (Key) { 0x28, 0 }, (Key) { 0x1C, 0 }, (Key) { 0x18, 0 }, (Key) { 0x0C, 0 }, (Key) { 0x12, 0 }, (Key) { 0x13, 0 }, (Key) { 0x2E, 0 }}, {(Key) { 0x4B, 0 }, (Key) { 0x04, 0 }, (Key) { 0x16, 0 }, (Key) { 0x07, 0 }, (Key) { 0x09, 0 }, (Key) { 0x0A, 0 }, (Key) { 0x29, 0 }, (Key) { 0xE3, 0 }, (Key) { 0xE2, 0 }, (Key) { 0xE6, 0 }, (Key) { 0x0B, 0 }, (Key) { 0x0D, 0 }, (Key) { 0x0E, 0 }, (Key) { 0x0F, 0 }, (Key) { 0x33, 0 }, (Key) { 0x34, 0 }}, {(Key) { 0x4E, 0 }, (Key) { 0x1D, 0 }, (Key) { 0x1B, 0 }, (Key) { 0x06, 0 }, (Key) { 0x19, 0 }, (Key) { 0x05, 0 }, (Key){ FUNCTION + LAYER_SHIFT_OFFSET, 0 | 64 | 4 }, (Key) { 0xE1, 0 }, (Key) { 0xE5, 0 }, (Key){ FUNCTION + LAYER_SHIFT_OFFSET, 0 | 64 | 4 }, (Key) { 0x11, 0 }, (Key) { 0x10, 0 }, (Key) { 0x36, 0 }, (Key) { 0x37, 0 }, (Key) { 0x38, 0 }, (Key) { 0x2D, 0 }}, }
# 148 ""
,
[NUMPAD] = { {(Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ MACRO_VERSION_INFO, 0|64|32 }, (Key){ .raw = 0xffff }, (Key) { 0x5F, 0 }, (Key) { 0x60, 0 }, (Key) { 0x61, 0 }, (Key) { 0x56, 0 }, (Key){ .raw = 0xffff }}, {(Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key) { 0x5C, 0 }, (Key) { 0x5D, 0 }, (Key) { 0x5E, 0 }, (Key) { 0x57, 0 }, (Key){ .raw = 0xffff }}, {(Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key) { 0x59, 0 }, (Key) { 0x5A, 0 }, (Key) { 0x5B, 0 }, (Key) { 0x2E, 0 }, (Key){ .raw = 0xffff }}, {(Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key) { 0x62, 0 }, (Key) { 0x63, 0 }, (Key) { 0x55, 0 }, (Key) { 0x54, 0 }, (Key) { 0x28, 0 }}, }
# 164 ""
,
[FUNCTION] = { {(Key){ .raw = 0xffff }, (Key) { 0x3A, 0 }, (Key) { 0x3B, 0 }, (Key) { 0x3C, 0 }, (Key) { 0x3D, 0 }, (Key) { 0x3E, 0 }, (Key) { 0, 0 }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key) { .raw = (0xB6) | ((0 | 16 | 64|8) << 8) }, (Key) { 0x3F, 0 }, (Key) { 0x40, 0 }, (Key) { 0x41, 0 }, (Key) { 0x42, 0 }, (Key) { 0x43, 0 }, (Key) { 0x44, 0 }}, {(Key) { 0x2B, 0 }, (Key){ .raw = 0xffff }, (Key) { 1, 0|64|16 }, (Key){ .raw = 0xffff }, (Key) { 64 | (1 << 1), 0 | 64 | 16 }, (Key) { 32| 64, 0|64|16 }, (Key) { 32| 1 | 8, 0|64|16 }, (Key) { 0x4C, 0 }, (Key) { 0x28, 0 }, (Key) { .raw = (0xCD) | ((0 | 16 | 64|8) << 8) }, (Key) { .raw = (0xB5) | ((0 | 16 | 64|8) << 8) }, ((Key) { (Key) { 0x2F, 0 }.keyCode, (Key) { 0x2F, 0 }.flags | 8 }), ((Key) { (Key) { 0x30, 0 }.keyCode, (Key) { 0x30, 0 }.flags | 8 }), (Key) { 0x2F, 0 }, (Key) { 0x30, 0 }, (Key) { 0x45, 0 }}, {(Key) { 0x4A, 0 }, (Key) { 4, 0|64|16 }, (Key) { 2, 0|64|16 }, (Key) { 8, 0|64|16 }, (Key) { 64 | (1 << 0), 0 | 64 | 16 }, (Key) { 32| 1 | 4, 0|64|16 }, (Key) { 32| 2 | 8, 0|64|16 }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key) { 0x65, 0 }, (Key) { 0x50, 0 }, (Key) { 0x51, 0 }, (Key) { 0x52, 0 }, (Key) { 0x4F, 0 }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }}, {(Key) { 0x4D, 0 }, (Key) { 0x46, 0 }, (Key) { 0x49, 0 }, (Key){ .raw = 0xffff }, (Key) { 64 | (1 << 2), 0 | 64 | 16 }, (Key) { 32| 2 | 4, 0|64|16 }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key){ .raw = 0xffff }, (Key) { .raw = (0xE2) | ((0 | 12 | 64|8) << 8) }, (Key) { .raw = (0xEA) | ((0 | 20 | 64|8) << 8) }, (Key) { .raw = (0xE9) | ((0 | 20 | 64|8) << 8) }, (Key){ .raw = 0xffff }, (Key) { 0x31, 0 }, ((Key) { (Key) { 0x31, 0 }.keyCode, (Key) { 0x31, 0 }.flags | 8 })}, }
# 181 "<stdin>"
};
# 191 "<stdin>"
static void versionInfoMacro(uint8_t keyState) {
if ((((keyState) & 2) && ! ((keyState) & 1))) {
Macros.type((__extension__({static const char __c[] __attribute__((__progmem__)) = ("Keyboardio Model 01 - Kaleidoscope "); &__c[0];})));
Macros.type((__extension__({static const char __c[] __attribute__((__progmem__)) = ("locally built"); &__c[0];})));
}
}
# 206 "<stdin>"
static void anyKeyMacro(uint8_t keyState) {
static Key lastKey;
if ((((keyState) & 2) && ! ((keyState) & 1)))
lastKey.keyCode = (Key) { 0x04, 0 }.keyCode + (uint8_t)(millis() % 36);
if (((keyState) & 2))
kaleidoscope::hid::pressKey(lastKey);
}
# 228 "<stdin>"
const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
switch (macroIndex) {
case MACRO_VERSION_INFO:
versionInfoMacro(keyState);
break;
case MACRO_ANY:
anyKeyMacro(keyState);
break;
}
return 0;
}
# 249 "<stdin>"
static kaleidoscope::LEDSolidColor solidRed(160, 0, 0);
static kaleidoscope::LEDSolidColor solidOrange(140, 70, 0);
static kaleidoscope::LEDSolidColor solidYellow(130, 100, 0);
static kaleidoscope::LEDSolidColor solidGreen(0, 160, 0);
static kaleidoscope::LEDSolidColor solidBlue(0, 70, 130);
static kaleidoscope::LEDSolidColor solidIndigo(0, 0, 170);
static kaleidoscope::LEDSolidColor solidViolet(130, 0, 120);
# 289 "<stdin>"
using namespace kaleidoscope::LEDEffect_FunctionalColor;
# 299 "<stdin>"
cRGB palette[] = {
(cRGB){0, 0, 0},
green,
blue,
red,
yellow
};
enum paletteIds {
fallbackId,
greenId,
blueId,
redId,
yellowId
};
byte &colorBrightness_myCBColorList(const Key &k) { constexpr byte defaultPaletteId = greenId; switch(k.raw) {
case ((Key) { 0x04, 0 }).flags << 8 | ((Key) { 0x04, 0 }).keyCode: { static byte cb = (blueId << 4) | 0xF ; return cb; } break;
case ((Key) { 0x05, 0 }).flags << 8 | ((Key) { 0x05, 0 }).keyCode: { static byte cb = (redId << 4) | 0xF ; return cb; } break;
case ((Key) { 0x27, 0 }).flags << 8 | ((Key) { 0x27, 0 }).keyCode:
case ((Key) { 0x1E, 0 }).flags << 8 | ((Key) { 0x1E, 0 }).keyCode:
case ((Key) { 0x1F, 0 }).flags << 8 | ((Key) { 0x1F, 0 }).keyCode:
case ((Key) { 0x20, 0 }).flags << 8 | ((Key) { 0x20, 0 }).keyCode:
case ((Key) { 0x21, 0 }).flags << 8 | ((Key) { 0x21, 0 }).keyCode:
case ((Key) { 0x22, 0 }).flags << 8 | ((Key) { 0x22, 0 }).keyCode:
case ((Key) { 0x23, 0 }).flags << 8 | ((Key) { 0x23, 0 }).keyCode:
case ((Key) { 0x24, 0 }).flags << 8 | ((Key) { 0x24, 0 }).keyCode:
case ((Key) { 0x25, 0 }).flags << 8 | ((Key) { 0x25, 0 }).keyCode:
case ((Key) { 0x26, 0 }).flags << 8 | ((Key) { 0x26, 0 }).keyCode: { static byte cb = (yellowId << 4) | 0xF ; return cb; } break;
} static byte default_cb = (defaultPaletteId << 4) | 0xF; return default_cb; }
kaleidoscope::LEDFunctionalColorCB fcCB(0 ,
&colorBrightness_myCBColorList,
palette, sizeof(palette)/sizeof(cRGB));
cRGB &cRGBLookup_myRGBColorList(const Key &k) { constexpr cRGB initialDefaultColor = white; switch(k.raw) {
case ((Key) { 0x04, 0 }).flags << 8 | ((Key) { 0x04, 0 }).keyCode: { static cRGB color = blue; return color; } break;
case ((Key) { 0x05, 0 }).flags << 8 | ((Key) { 0x05, 0 }).keyCode: { static cRGB color = red; return color; } break;
case ((Key) { 0x1E, 0 }).flags << 8 | ((Key) { 0x1E, 0 }).keyCode:
case ((Key) { 0x1F, 0 }).flags << 8 | ((Key) { 0x1F, 0 }).keyCode:
case ((Key) { 0x20, 0 }).flags << 8 | ((Key) { 0x20, 0 }).keyCode:
case ((Key) { 0x21, 0 }).flags << 8 | ((Key) { 0x21, 0 }).keyCode: { static cRGB color = yellow; return color; } break;
} static cRGB defaultColor = initialDefaultColor; return defaultColor; }
kaleidoscope::LEDFunctionalColorRGB fcRGB(0 ,
&cRGBLookup_myRGBColorList);
void setup() {
Kaleidoscope.setup();
Kaleidoscope.use(
# 381 "<stdin>"
&LEDControl,
&fcCB,
&fcRGB,
&LEDRainbowEffect,
&LEDRainbowWaveEffect,
&LEDChaseEffect,
&solidRed, &solidOrange, &solidYellow, &solidGreen, &solidBlue, &solidIndigo, &solidViolet,
&LEDBreatheEffect,
&AlphaSquareEffect,
&StalkerEffect,
&NumPad,
&Macros,
&MouseKeys
);
NumPad.numPadLayer = NUMPAD;
AlphaSquare.color = (cRGB){0, 0, 255};
LEDRainbowEffect.brightness(150);
LEDRainbowWaveEffect.brightness(150);
StalkerEffect.variant = ({static kaleidoscope::stalker::BlazingTrail _effect ; &_effect;});
# 453 "<stdin>"
}
# 462 "<stdin>"
void loop() {
Kaleidoscope.loop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment