This file contains hidden or 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 <stdint.h> | |
uint16_t addRGB565( uint16_t color1, uint16_t color2 ) { | |
uint16_t c; | |
c = ( ( color1 & color2 ) + ( ( ( color1 ^ color2 ) & 0xf7de ) >> 1)) & 0x8410; | |
c = ( ( ( ( ( c + 0xfbdf0 ) ) >> 5 ) & 0xfbff ) + 0x200 ) ^ 0x7bef; | |
return (color1 + color2 - c) | c; | |
} |
This file contains hidden or 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 <stdint.h> | |
uint16_t blendRGB555( uint16_t color1, uint16_t color2 ) { | |
return( (color1 & color2) + (((color1 ^ color2) & 0x7bde) >> 1) ); | |
} | |
// testbench | |
#include <stdio.h> | |
#define R_bits 5 |
This file contains hidden or 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
#define DEBUGMODE | |
#ifdef DEBUGMODE | |
#define DEBUG(x) _DEBUG(,x) | |
#define _DEBUG(dummy,x) dummy##x | |
#else | |
#define DEBUG(x) | |
#endif | |
void func( void ) { |
This file contains hidden or 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 <LovyanGFX.hpp> | |
struct LGFX_Config { | |
static constexpr spi_host_device_t spi_host = HSPI_HOST; | |
static constexpr int dma_channel = 1; | |
static constexpr int spi_sclk = 14; | |
static constexpr int spi_mosi = 13; | |
static constexpr int spi_miso = -1; | |
static constexpr int spi_dlen = 8; | |
}; |
This file contains hidden or 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 <LovyanGFX.hpp> | |
struct LGFX_Config { | |
static constexpr spi_host_device_t spi_host = HSPI_HOST; | |
static constexpr int dma_channel = 1; | |
static constexpr int spi_sclk = 14; | |
static constexpr int spi_mosi = 13; | |
static constexpr int spi_miso = -1; | |
static constexpr int spi_dlen = 8; | |
}; |
This file contains hidden or 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 "SAMD51_TC.h" | |
bool isLEDOn = false; | |
char time = 0; | |
void setup() | |
{ | |
//SerialUSB.begin(115200); | |
//while(!SerialUSB); | |
This file contains hidden or 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
//#define NO_WIFI | |
#ifndef NO_WIFI | |
#include <AtWiFi.h> | |
#endif | |
#include <TFT_eSPI.h> | |
TFT_eSPI tft; | |
const char* ssid = "***********"; |
This file contains hidden or 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 <Adafruit_ZeroDMA.h> | |
#include <TFT_eSPI.h> | |
#include "AtWiFi.h" | |
#include"Free_Fonts.h" | |
TFT_eSPI tft; | |
const char* ssid = "******"; | |
const char* password = "*******"; |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\runas] | |
"Extended"="" | |
"NoWorkingDirectory"="" | |
@="PowerShell(管理者)ウィンドウをここに開く(&A)" | |
[HKEY_CLASSES_ROOT\Directory\shell\runas\command] | |
@="powershell.exe -noexit -command Set-Location -literalPath '%V'" |
This file contains hidden or 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
using System; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.IO; | |
using System.IO.MemoryMappedFiles; | |
namespace MAHMTest { | |
public partial class Form1 : Form { | |
public Form1() { | |
InitializeComponent(); |