Source: http://jazz-disassemblies.blogspot.com/2014/02/the-nintedno-gameboy-pockets-cpu-pinout.html
- A0
- A1
- A2
- A3
- A4
- A5
- A6
- A7
| #include <SDL.h> | |
| #include <stdio.h> | |
| #define RGB(r, g, b) (((r)<<16)|((g)<<8)|(b)) | |
| void displayImage(SDL_Surface *surface, uint8_t *image) { | |
| uint32_t *pixels = (uint32_t *)surface->pixels; | |
| uint32_t pixel; | |
| uint16_t raw; | |
| uint8_t y; |
| // Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de> | |
| // See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details. | |
| // Copyright (c) 2017 ZephRay <zephray@outlook.com> | |
| // | |
| // utf8to1252 - almost equivalent to iconv -f utf-8 -t windows-1252, but better | |
| // | |
| // What this program can do? | |
| // Sometimes you would encounter some "double utf-8 encoded file", most cases | |
| // from a MySQL dump. If this happens, you may find some luck use this program | |
| // to fix your file! |
| //Space Engineers Automatic Train Control Script | |
| //Written by ZephRay for ATSES | |
| /* Configurations */ | |
| public const string PROGRAM_BLOCK_NAME = "Train CU"; //编程块名称 | |
| public const string LCD_BLOCK_NAME = "Train CU LCD"; //调试LCD名称 | |
| public const string BACK_THRUSTER_NAME = "Train Back Thruster"; //后推进器名称 | |
| public const string FORWARD_THRUSTER_NAME = "Train Forward Thruster"; //前推进器名称 | |
| public const double ALLOW_VELOCITY_ERROR = 3.0; //调速控制误差范围 m |
| https://forums.xilinx.com/t5/Xilinx-Boards-and-Kits/ML507-AD9980-I2C-bus/td-p/30165 | |
| By miggae | |
| Hi Tannous | |
| Below, there are the ADC registers "writes" of a working example on ML507. |
Source: http://jazz-disassemblies.blogspot.com/2014/02/the-nintedno-gameboy-pockets-cpu-pinout.html
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/x86 3.2.102 Kernel Configuration | |
| # | |
| # CONFIG_64BIT is not set | |
| CONFIG_X86_32=y | |
| # CONFIG_X86_64 is not set | |
| CONFIG_X86=y | |
| CONFIG_INSTRUCTION_DECODER=y | |
| CONFIG_OUTPUT_FORMAT="elf32-i386" |
| #include "epd.h" | |
| #include "image.h" | |
| const unsigned char EPD_LUTGreyscaleA[] ={ | |
| // VCOM | |
| 0x00, 0x05, 0x07, 0x00, 0x00, 0x01, | |
| 0x00, 0x0A, 0x0A, 0x00, 0x00, 0x01, | |
| 0x00, 0x0c, 0x13, 0x0f, 0x00, 0x01, | |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| #!/bin/sh | |
| awk '{s="00000000"$1;l=length(s);if(!((NR-1)%4))printf "%08x ",(NR-1)*4;for(i=l-1;i>l-8;i-=2)printf " %s",substr(s,i,2);if(!(NR%4))printf "\n";}' $1 > qspi-tmp | |
| xxd -r qspi-tmp $2 | |
| rm qspi-tmp |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <stdint.h> | |
| #include <ctype.h> | |
| #include <time.h> | |
| #include <wiringPi.h> | |
| #include <math.h> | |
| #include <bcm_host.h> |