Added new PCB board and update README with the low mem modality

This commit is contained in:
Renzo 2018-07-25 11:34:38 +02:00
parent 114c3cafb5
commit 0dc02aa919
15 changed files with 12181 additions and 0 deletions

View File

@ -40,6 +40,33 @@ So to read all analog input in one trasmission you can do (even if I use a 10mi
Serial.println(di.p3);
```
To follow a request (you can see It on [issue #5](https://github.com/xreef/PCF8574_library/issues/5)) I create a define variable to work with low memori device, if you decomment this line on .h file of the library:
```cpp
// #define PCF8574_LOW_MEMORY
```
Enable low memory props and gain about 7byte of memory, and you must use the method to read all like so:
```cpp
byte di = pcf8574.digitalReadAll();
Serial.print("READ VALUE FROM PCF: ");
Serial.println(di, BIN);
```
where di is a byte like 1110001, so you must do a bitwise operation to get the data, operation that I already do in the "normal" mode, here an example:
```cpp
p0 = ((di & bit(0))>0)?HIGH:LOW;
p1 = ((di & bit(1))>0)?HIGH:LOW;
p2 = ((di & bit(2))>0)?HIGH:LOW;
p3 = ((di & bit(3))>0)?HIGH:LOW;
p4 = ((di & bit(4))>0)?HIGH:LOW;
p5 = ((di & bit(5))>0)?HIGH:LOW;
p6 = ((di & bit(6))>0)?HIGH:LOW;
p7 = ((di & bit(7))>0)?HIGH:LOW;
```
if you want read a single input:

2113
resources/PCB/PCBSimple.flat Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,16 @@
G21
G90
G94
F76.20
G00 Z2.5400
M03
G4 P1
G00 X27.2636Y0.4608
G01 Z-0.0508
G01 X27.3090Y31.6021
G01 X1.9869Y31.6021
G00 Z2.5400
G00 Z2.5400
G00 X0Y0
M05

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,186 @@
G21
G90
G94
F76.20
G00 Z2.5400
M03
G4 P1
G00 X13.7820Y12.9819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X8.7020Y5.3619
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y12.9819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y20.6019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y25.6819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y25.6819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y10.4419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y23.1419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y18.0619
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y15.5219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y15.5219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y18.0619
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y28.2219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y28.2219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y20.6019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X11.2420Y10.4419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y10.4419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y5.3619
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X6.1620Y10.4419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X13.7820Y23.1419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X16.3220Y7.9019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X18.8620Y7.9019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X6.1620Y15.5219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X11.2420Y7.9019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X6.1620Y12.9819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X6.1620Y7.9019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X6.1620Y18.0619
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X21.4020Y7.9019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X8.7020Y7.9019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X23.9420Y28.2219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X11.2420Y20.6019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X11.2420Y23.1419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X23.9420Y12.9819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X11.2420Y25.6819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X23.9420Y15.5219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X23.9420Y20.6019
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X23.9420Y25.6819
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X6.1620Y10.4419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X23.9420Y18.0619
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X11.2420Y18.0619
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X23.9420Y23.1419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X3.6220Y2.8219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X6.1620Y2.8219
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X11.2420Y10.4419
G01 Z-1.8000
G01 Z0
G00 Z2.5400
G00 X0.0000Y0.0000
M05

View File

@ -0,0 +1,26 @@
G04 MADE WITH FRITZING*
G04 WWW.FRITZING.ORG*
G04 SINGLE SIDED*
G04 HOLES NOT PLATED*
G04 CONTOUR ON CENTER OF CONTOUR VECTOR*
%ASAXBY*%
%FSLAX23Y23*%
%MOIN*%
%OFA0B0*%
%SFA1.0B1.0*%
%ADD10R,1.080370X1.247500*%
%ADD11C,0.008000*%
%ADD10C,0.008*%
%LNCONTOUR*%
G90*
G70*
G54D10*
G54D11*
X4Y1244D02*
X1076Y1244D01*
X1076Y4D01*
X4Y4D01*
X4Y1244D01*
D02*
G04 End of contour*
M02*

View File

@ -0,0 +1,267 @@
G04 MADE WITH FRITZING*
G04 WWW.FRITZING.ORG*
G04 SINGLE SIDED*
G04 HOLES NOT PLATED*
G04 CONTOUR ON CENTER OF CONTOUR VECTOR*
%ASAXBY*%
%FSLAX23Y23*%
%MOIN*%
%OFA0B0*%
%SFA1.0B1.0*%
%ADD10C,0.075000*%
%ADD11C,0.078000*%
%ADD12C,0.078740*%
%ADD13R,0.075000X0.075000*%
%ADD14R,0.078000X0.078000*%
%ADD15C,0.048000*%
%ADD16C,0.024000*%
%ADD17C,0.020000*%
%LNCOPPER0*%
G90*
G70*
G54D10*
X843Y137D03*
X543Y137D03*
X843Y237D03*
X543Y237D03*
X843Y337D03*
X543Y337D03*
X843Y437D03*
X543Y437D03*
X843Y537D03*
X543Y537D03*
X843Y637D03*
X543Y637D03*
X843Y737D03*
X543Y737D03*
X843Y837D03*
X543Y837D03*
G54D11*
X843Y937D03*
X743Y937D03*
X643Y937D03*
X243Y737D03*
X243Y637D03*
X243Y537D03*
X443Y937D03*
X343Y937D03*
X243Y937D03*
G54D12*
X943Y237D03*
X443Y237D03*
X443Y337D03*
X943Y437D03*
X943Y137D03*
X943Y337D03*
X443Y537D03*
X243Y1137D03*
X943Y637D03*
X143Y1137D03*
X943Y537D03*
X443Y837D03*
X243Y837D03*
X443Y437D03*
X943Y737D03*
G54D10*
X243Y837D03*
X443Y837D03*
X343Y1037D03*
X543Y1037D03*
G54D13*
X843Y137D03*
G54D14*
X843Y937D03*
X243Y737D03*
G54D15*
X912Y337D02*
X871Y337D01*
D02*
X912Y237D02*
X871Y237D01*
G54D16*
D02*
X943Y437D02*
X843Y437D01*
G54D15*
D02*
X843Y907D02*
X843Y866D01*
D02*
X514Y637D02*
X273Y637D01*
D02*
X243Y767D02*
X243Y806D01*
D02*
X514Y237D02*
X473Y237D01*
D02*
X514Y137D02*
X143Y137D01*
D02*
X143Y137D02*
X143Y536D01*
D02*
X143Y536D02*
X213Y537D01*
G54D16*
D02*
X943Y737D02*
X843Y737D01*
G54D15*
D02*
X643Y1036D02*
X643Y967D01*
D02*
X571Y1037D02*
X643Y1036D01*
D02*
X514Y337D02*
X473Y337D01*
G54D16*
D02*
X443Y907D02*
X443Y868D01*
G54D15*
D02*
X912Y537D02*
X871Y537D01*
D02*
X943Y137D02*
X843Y137D01*
D02*
X213Y937D02*
X143Y938D01*
D02*
X143Y938D02*
X143Y1106D01*
D02*
X243Y967D02*
X244Y1036D01*
D02*
X244Y1036D02*
X314Y1037D01*
D02*
X743Y838D02*
X743Y938D01*
D02*
X571Y837D02*
X743Y838D01*
D02*
X743Y938D02*
X755Y964D01*
D02*
X543Y237D02*
X443Y237D01*
G54D16*
D02*
X943Y337D02*
X843Y337D01*
D02*
X543Y337D02*
X443Y337D01*
D02*
X843Y837D02*
X844Y838D01*
D02*
X844Y838D02*
X843Y907D01*
G54D15*
D02*
X844Y1136D02*
X273Y1137D01*
D02*
X843Y967D02*
X844Y1136D01*
G54D16*
D02*
X943Y237D02*
X843Y237D01*
G54D15*
D02*
X912Y637D02*
X871Y637D01*
D02*
X514Y437D02*
X473Y437D01*
G54D16*
D02*
X943Y537D02*
X843Y537D01*
G54D15*
D02*
X912Y137D02*
X871Y137D01*
D02*
X514Y537D02*
X473Y537D01*
D02*
X442Y1136D02*
X443Y866D01*
D02*
X273Y1137D02*
X442Y1136D01*
G54D16*
D02*
X543Y537D02*
X443Y537D01*
G54D15*
D02*
X912Y437D02*
X871Y437D01*
G54D16*
D02*
X543Y437D02*
X443Y437D01*
D02*
X442Y967D02*
X442Y1036D01*
D02*
X442Y1036D02*
X442Y1136D01*
D02*
X442Y1136D02*
X273Y1137D01*
G54D15*
D02*
X143Y536D02*
X143Y1106D01*
D02*
X213Y537D02*
X143Y536D01*
G54D16*
D02*
X943Y637D02*
X843Y637D01*
G54D15*
D02*
X442Y737D02*
X341Y737D01*
D02*
X341Y737D02*
X342Y907D01*
D02*
X514Y737D02*
X442Y737D01*
D02*
X912Y737D02*
X871Y737D01*
G54D16*
D02*
X543Y637D02*
X544Y639D01*
D02*
X544Y639D02*
X443Y639D01*
D02*
X443Y639D02*
X273Y637D01*
G54D17*
X472Y908D02*
X414Y908D01*
X414Y966D01*
X472Y966D01*
X472Y908D01*
D02*
G04 End of Copper0*
M02*

View File

@ -0,0 +1,57 @@
; NON-PLATED HOLES START AT T1
; THROUGH (PLATED) HOLES START AT T100
M48
INCH
T100C0.035000
T101C0.039370
T102C0.038000
%
T100
X005426Y007369
X003426Y010369
X008426Y007369
X005426Y004369
X008426Y002369
X005426Y002369
X008426Y008369
X008426Y003369
X005426Y005369
X005426Y006369
X008426Y006369
X008426Y005369
X008426Y001369
X005426Y001369
X008426Y004369
X004426Y008369
X005426Y008369
X005426Y010369
X002426Y008369
X005426Y003369
T101
X009426Y001369
X004426Y004369
X004426Y003369
X009426Y007369
X004426Y002369
X009426Y006369
X009426Y004369
X009426Y002369
X002426Y008369
X009426Y005369
X004426Y005369
X009426Y003369
X001426Y011369
X002426Y011369
X004426Y008369
T102
X006426Y009369
X007426Y009369
X002426Y006369
X004426Y009369
X002426Y007369
X002426Y009369
X002426Y005369
X008426Y009369
X003426Y009369
T00
M30

View File

@ -0,0 +1,83 @@
G04 MADE WITH FRITZING*
G04 WWW.FRITZING.ORG*
G04 SINGLE SIDED*
G04 HOLES NOT PLATED*
G04 CONTOUR ON CENTER OF CONTOUR VECTOR*
%ASAXBY*%
%FSLAX23Y23*%
%MOIN*%
%OFA0B0*%
%SFA1.0B1.0*%
%ADD10C,0.085000*%
%ADD11C,0.088000*%
%ADD12C,0.088740*%
%ADD13R,0.085000X0.085000*%
%ADD14R,0.088000X0.088000*%
%ADD15C,0.030000*%
%LNMASK0*%
G90*
G70*
G54D10*
X843Y137D03*
X543Y137D03*
X843Y237D03*
X543Y237D03*
X843Y337D03*
X543Y337D03*
X843Y437D03*
X543Y437D03*
X843Y537D03*
X543Y537D03*
X843Y637D03*
X543Y637D03*
X843Y737D03*
X543Y737D03*
X843Y837D03*
X543Y837D03*
G54D11*
X843Y937D03*
X743Y937D03*
X643Y937D03*
X243Y737D03*
X243Y637D03*
X243Y537D03*
X443Y937D03*
X343Y937D03*
X243Y937D03*
G54D12*
X943Y237D03*
X443Y237D03*
X443Y337D03*
X943Y437D03*
X943Y137D03*
X943Y337D03*
X443Y537D03*
X243Y1137D03*
X943Y637D03*
X143Y1137D03*
X943Y537D03*
X443Y837D03*
X243Y837D03*
X443Y437D03*
X943Y737D03*
G54D10*
X243Y837D03*
X443Y837D03*
X343Y1037D03*
X543Y1037D03*
G54D13*
X843Y137D03*
G54D14*
X843Y937D03*
X243Y737D03*
G54D15*
G36*
X472Y908D02*
X414Y908D01*
X414Y966D01*
X472Y966D01*
X472Y908D01*
G37*
D02*
G04 End of Mask0*
M02*

View File

@ -0,0 +1,38 @@
*Pick And Place List
*Company=
*Author=
*eMail=
*
*Project=PCB_PCF8574_IC
*Date=19:04:35
*CreatedBy=Fritzing 0.9.3b.04.19.5c895d327c44a3114e5fcc9d8260daf0cbb52806
*
*
*Coordinates in mm, always center of component
*Origin 0/0=Lower left corner of PCB
*Rotation in degree (0-360, math. pos.)
*
*No;Value;Package;X;Y;Rotation;Side;Name
1;;THT;18.8642;-23.7979;90;Bottom;S3
2;;;23.9442;-13.6379;0;Bottom;Via4
3;;THT;6.16418;-16.1779;0;Bottom;S1
4;;;23.9443;-8.55783;0;Bottom;Via16
5;;;23.9442;-16.1779;0;Bottom;Via3
6;;DIP (Dual Inline) [THT];17.5942;-12.3679;180;Bottom;IC1
7;;THT;8.70418;-23.7979;90;Bottom;S2
8;;;6.16419;-28.8779;0;Bottom;Via2
9;;;11.2442;-21.2579;0;Bottom;Via5
10;;;23.9443;-11.0978;0;Bottom;Via14
11;;;11.2442;-11.0979;0;Bottom;Via19
12;;;6.16419;-21.2579;0;Bottom;Via6
13;;;8.70418;-21.2579;0;Bottom;Jumper1
14;;;11.2442;-13.6379;0;Bottom;Via9
15;;;23.9442;-18.7179;0;Bottom;Via20
16;;;23.9443;-6.01783;0;Bottom;Via13
17;;;11.2442;-6.01792;0;Bottom;Via12
18;;;11.2442;-26.3379;0;Bottom;Jumper2
19;;;3.62419;-28.8779;0;Bottom;Via1
20;;;17.3515;-10.6068;90;Bottom;TXT1
21;;;23.9443;-3.47783;0;Bottom;Via15
22;;;11.2442;-8.55792;0;Bottom;Via11
23;;;7.50459;-6.05592;0;Bottom;TXT1

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff