forked from kellyegan/OpenSCAD-Arduino-Mounting-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.scad
More file actions
33 lines (24 loc) · 698 Bytes
/
examples.scad
File metadata and controls
33 lines (24 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
include <arduino.scad>
//Arduino boards
//You can create a boxed out version of a variety of boards by calling the arduino() module
//The default board for all functions is the Uno
dueDimensions = boardDimensions( DUE );
unoDimensions = boardDimensions( UNO );
//Board mockups
arduino();
translate( [unoDimensions[0] + 50, 0, 0] )
arduino(DUE);
translate( [-(unoDimensions[0] + 50), 0, 0] )
arduino(LEONARDO);
translate([0, 0, -75]) {
enclosure();
translate( [unoDimensions[0] + 50, 0, 0] )
bumper(DUE);
translate( [-(unoDimensions[0] + 50), 0, 0] ) union() {
standoffs(LEONARDO, mountType=PIN);
boardShape(LEONARDO, offset = 3);
}
}
translate([0, 0, 75]) {
enclosureLid();
}