This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component pokeys "PoKeys IO driver, by Mit Zot"; | |
option userspace yes; | |
pin out bit in-# [55]; | |
pin out bit inext-# [16]; | |
pin out unsigned ain-# [3]; | |
pin out bit err; | |
pin in unsigned devSerial; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <PoKeysLib.h> | |
#include <unistd.h> /* UNIX standard function definitions */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int writeI2C(sPoKeysDevice *PK,uint8_t Reg,uint8_t Value) | |
{ | |
//read portB |