Skip to content

Instantly share code, notes, and snippets.

OpenSCAD Version: 2019.01-1
System information: Linux 4.18.6-sten #2 SMP PREEMPT Thu Sep 6 19:21:55 CEST 2018 x86_64 Debian GNU/Linux 9 (stretch) 4 CPUs 7.48 GB RAM
Compiler: GCC "6.3.0 20170516" 64bit
Boost version: 1_62
Eigen version: 3.3.2
CGAL version, kernels: 4.9, Cartesian, Extended_cartesian, Epeck
OpenCSG version: OpenCSG 1.4.0
Qt version: 5.7.1
QScintilla version: 2.9.3
InputDrivers:
icetime topological timing analysis report
==========================================
Warning: This timing analysis report is an estimate!
Info: max_span_hack is enabled: estimate is conservative.
Report for critical path:
-------------------------
lc40_31_26_1 (LogicCell40) [clk] -> lcout: 0.896 ns
27 -> F=440.0
255*((long)((float)t*F[midi_node])%2)
unsigned long old_t;
loop() {
function tangent_center(x0, x1, y0, y1, radius, otherside) =
let(tmpnx = (y1 - y0),
tmpny = -(x1 - x0),
l = sqrt(tmpnx*tmpnx+tmpny*tmpny)*(otherside ? -1 : 1),
nx = tmpnx/l,
ny = tmpny/l,
x3 = x0 + radius*nx,
y3 = y0 + radius*ny,
x4 = x1 + radius*nx,
y4 = y1 + radius*ny,
13
06
40
1f
93
06
00
00
37
07
size_t IeeFlip::write(uint8_t character)
{
// Remap from LCD custom character locations to Flip locations.
writeInternal(character, LOW);
return 1;
}
void my_print(char *p) {
while (*p) {
vfd.write(*p++);
// Du kan sætte delay her ...
}
}
knielsen@urd:~$ nslookup
> omftl.denada.dk
Server: 10.75.110.1
Address: 10.75.110.1#53
Non-authoritative answer:
Name: omftl.denada.dk
Address: 80.161.129.149
>
uint8_t swap_bits(uint8_t value, uint8_t bit1, uint8_t bit2)
{
uint8_t mask1 = 1 << bit1;
uint8_t mask2 = 1 << bit2;
uint8_t result = value & ~(mask1 | mask2);
result |= ((value & mask1) >> bit1) << bit2;
result |= ((value & mask2) >> bit2) << bit1;
return result;
}
void shiftOut25(uint8_t dataPin, uint8_t clockPin, long val)
{
long i;
for (i = 0; i < 25; i++) {
digitalWrite(dataPin, !!(val & ((long)1 << (long)(24 - i))));
digitalWrite(clockPin, HIGH);
digitalWrite(clockPin, LOW);
}
}