Skip to content

Instantly share code, notes, and snippets.

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;
#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