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
// [binary-Hex-Octal-dec] conversions | |
//10101010 | |
#include <stdio.h> | |
int main() | |
{ | |
unsigned long int val=10101011; | |
long int rem=0x00,i=1,out=0; | |
while(val !=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
#!/bin/bash | |
convert $1 logo.bmp | |
convert logo.bmp +flip -strip -define bmp:subtype=RGB565 bmp2:- > logo_rgb565.bmp | |
tail -c 25600 logo_rgb565.bmp > logo.bin | |
rm logo.bmp logo_rgb565.bmp |
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
#!/bin/bash | |
openocd -f interface/stlink.cfg -f target/nrf51.cfg -c "init" -c "halt" -c "nrf51 mass_erase" -c "program $1 verify" -c "reset" -c "exit" |