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
#!/usr/bin/env python | |
import struct | |
import sys | |
fin = open(sys.argv[1], 'rb') | |
fout = open(sys.argv[2], 'wb') | |
bin = fin.read() | |
fin.close() |
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
#!/usr/bin/env python | |
import json | |
import colorsys | |
import math | |
def hsv(h, s, v): | |
r, g, b = colorsys.hsv_to_rgb(h, s, v) | |
return (int(r*255)*256 + int(g*255))*256 + int(b*255) | |
arr = [] |
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
#!/usr/bin/env python | |
import pyaudio | |
import pylase as ol | |
import numpy as np | |
import sys | |
import threading | |
chunk = 1024 | |
#chunk = 2048 | |
CHANNELS = 2 |
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
PICkit 3: | |
Product ID: 0x900a | |
Vendor ID: 0x04d8 (Microchip Technology Inc.) | |
Version: 0.02 | |
Serial Number: DEFAULT_PK3 | |
Speed: Up to 12 Mb/sec | |
Manufacturer: Microchip Technology Inc. | |
Location ID: 0xfd120000 / 4 | |
Current Available (mA): 500 |
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
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> <head> | |
<title>FlashAir GPIO Test</title> | |
</head> | |
<body> | |
<p> | |
<input type="button" id="on" value="On"> | |
<input type="button" id="off" value="Off"> | |
</p> | |
<p> |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <dirent.h> | |
#include <math.h> | |
#include <fcntl.h> | |
#include <assert.h> | |
#include <malloc.h> | |
#include <sys/mman.h> | |
#include <sys/types.h> |
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
undefined |
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
undefined |
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
undefined |
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
diff --git a/Modules/CMakeASM_YASMInformation.cmake b/Modules/CMakeASM_YASMInformation.cmake | |
index 50b2848..3d7b330 100644 | |
--- a/Modules/CMakeASM_YASMInformation.cmake | |
+++ b/Modules/CMakeASM_YASMInformation.cmake | |
@@ -1,7 +1,13 @@ | |
set(ASM_DIALECT "_YASM") | |
set(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS asm) | |
-if(UNIX) | |
+if(APPLE) |
OlderNewer