roadlabs / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Add DAC reference gain support #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. MCP48xx DACs have a gain control on its reference that is currently hard 
coded to 1V/V.  This forces the output of the DAC to limit to 2.046V even when 
powered from 5V
2.
3.
...

WebIOPi version used?
=>0.7.0

Python version used?
=>3.4

Distro used? (WebIOPi has only been tested on Raspbian Wheezy)
=>Raspbian Wheezy

Raspberry Pi board revision? (1 or 2)
=>2

For Javascript side bugs, Browser?
=>did not use

Please provide any additional information below.
I modified the mcp48XX driver file to require a variable "gain_control" during 
initialization, see enclosed.  I'm sure there is a more elegant way to do it 
that you software folks can roll in

Original issue reported on code.google.com by mcencini...@gmail.com on 8 Apr 2014 at 6:06

Attachments: