-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazdelivery_esp8266_adapter_board.scad
41 lines (33 loc) · 1.14 KB
/
azdelivery_esp8266_adapter_board.scad
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
34
35
36
37
38
39
40
41
include <esp_8266.scad>
include <connector_pins.scad>
board_x = 31.5;
board_y = 28;
board_z = 0.93;
board_esp_margin_x = (board_x - esp_8266_x) / 2;
esp_8266_adapterboard_assembled_x = board_x;
esp_8266_adapterboard_assembled_y = board_y;
esp_8266_adapterboard_assembled_z = board_z + esp_8266_z + plastic_z + pin_long_z;
module pins() {
rotate(90)
8x_connector_pins();
}
module azdelivery_esp8266_adapter_board (with_esp=true,with_pins=true) {
z_offset = with_pins ? pin_long_z + plastic_z : 0;
translate([0,0,z_offset])
{
cube([board_x,board_y,board_z]);
translate([0,0,board_z]) {
if (with_esp) {
translate([board_esp_margin_x,0,0]){
esp_8266();
}
}
if (with_pins) {
translate([pin_x,board_y - connector_length(8),-1 * (pin_z-1.8)])
pins();
translate([board_x,board_y - connector_length(8),-1 * (pin_z-1.8)])
pins();
}
}
}
}