This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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() { |