Add files via upload
This commit is contained in:
parent
5cd0f77091
commit
670cb83abc
1 changed files with 15 additions and 6 deletions
|
@ -1,13 +1,22 @@
|
||||||
// This software is in the public domain
|
/* Copyright 2018 Frank Adams
|
||||||
// It implements an HP Pavilion DV9000 Laptop Keyboard Controller using a Teensy LC on
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
// This software implements an HP Pavilion DV9000 Laptop Keyboard Controller using a Teensy LC on
|
||||||
// a daughterboard with a 26 pin FPC connector. The keyboard part number is AEAT5U00110.
|
// a daughterboard with a 26 pin FPC connector. The keyboard part number is AEAT5U00110.
|
||||||
// This routine uses the Teensyduino "Micro-Manager Method" to send Normal and Modifier
|
// This routine uses the Teensyduino "Micro-Manager Method" to send Normal and Modifier
|
||||||
// keys over USB. Multi-media keys are sent with keyboard press and release functions.
|
// keys over USB. Multi-media keys are sent with keyboard press and release functions.
|
||||||
// Description of Teensyduino keyboard functions is at www.pjrc.com/teensy/td_keyboard.html
|
// Description of Teensyduino keyboard functions is at www.pjrc.com/teensy/td_keyboard.html
|
||||||
//
|
//
|
||||||
// Revision History
|
// Revision History
|
||||||
// Initial Release Nov 15, 2018
|
// Initial Release Nov 18, 2018
|
||||||
//
|
|
||||||
//
|
//
|
||||||
#define MODIFIERKEY_FN 0x8f // give Fn key a fake HID code
|
#define MODIFIERKEY_FN 0x8f // give Fn key a fake HID code
|
||||||
#define CAPS_LED 13 // Teensy LED shows Caps-Lock
|
#define CAPS_LED 13 // Teensy LED shows Caps-Lock
|
||||||
|
@ -15,9 +24,9 @@
|
||||||
const byte rows_max = 18; // sets the number of rows in the matrix
|
const byte rows_max = 18; // sets the number of rows in the matrix
|
||||||
const byte cols_max = 8; // sets the number of columns in the matrix
|
const byte cols_max = 8; // sets the number of columns in the matrix
|
||||||
//
|
//
|
||||||
// Load the normal key matrix with the Teensyduino key names described at www.pjrc.com/teensy/td_keyboard.html
|
// Load the normal key matrix with the Teensyduino key names
|
||||||
|
// described at www.pjrc.com/teensy/td_keyboard.html
|
||||||
// A zero indicates no normal key at that location.
|
// A zero indicates no normal key at that location.
|
||||||
//
|
|
||||||
int normal[rows_max][cols_max] = {
|
int normal[rows_max][cols_max] = {
|
||||||
{KEYPAD_7,KEYPAD_PLUS,KEYPAD_9,KEYPAD_2,KEYPAD_3,KEYPAD_1,KEYPAD_ENTER,KEYPAD_8},
|
{KEYPAD_7,KEYPAD_PLUS,KEYPAD_9,KEYPAD_2,KEYPAD_3,KEYPAD_1,KEYPAD_ENTER,KEYPAD_8},
|
||||||
{KEYPAD_SLASH,KEYPAD_6,KEYPAD_MINUS,KEYPAD_5,KEYPAD_PERIOD,KEYPAD_4,KEYPAD_0,KEYPAD_ASTERIX},
|
{KEYPAD_SLASH,KEYPAD_6,KEYPAD_MINUS,KEYPAD_5,KEYPAD_PERIOD,KEYPAD_4,KEYPAD_0,KEYPAD_ASTERIX},
|
||||||
|
|
Loading…
Reference in a new issue