Skip to content

Instantly share code, notes, and snippets.

#include <SPI.h>
#include <DmaSpi.h>
uint16_t buffer[128][128];
#define DMASIZE 16384
DmaSpi::Transfer trxA(nullptr, 0, nullptr);
DmaSpi::Transfer trxB(nullptr, 0, nullptr);
uint32_t transferCount = 0;
void setup() {
@macaba
macaba / .block
Last active April 19, 2017 22:01 — forked from mbostock/.block
Brush & Zoom
license: gpl-3.0
@macaba
macaba / .block
Created April 19, 2017 22:05 — forked from mbostock/.block
Brush Handles
license: gpl-3.0
typedef union
{
struct
{
uint8_t bit1 : 1;
uint8_t bit2 : 1;
uint8_t bit3 : 1;
uint8_t bit4 : 1;
uint8_t bit5 : 1;
uint8_t bit6 : 1;
import adsk.core, adsk.fusion, adsk.cam, traceback, math
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
#ui.messageBox('Hello script')
design = app.activeProduct
# Get the root component of the active design.