Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 501 Bytes

readme.md

File metadata and controls

26 lines (20 loc) · 501 Bytes

MAX1932 Libray

C++ Wiring Pi library for Maxim's MAX1932 APD bias supply.

Example

#include <stdio.h>
#include <stdlib.h>
#include <wiringPi.h>
#include <wiringPiSPI.h>

#include "max1932.h"

// HV chip select GPIO5, Header Pin 29, Wiring pi Pin 21
#define CS_PIN 21
#define SPI_CHANNEL 0

int main (){
  MAX1932 *hv = new MAX1932(CS_PIN, SPI_CHANNEL);
  hv->setByte(0xAE);
  return 0;
}

Voltage Curves

Calculation