Skip to content

Instantly share code, notes, and snippets.

View M5Stack-clock-and-environment-sensor.cpp
#include <M5Stack.h>
#include <Wire.h>
#include "Adafruit_Sensor.h"
#include <Adafruit_BMP280.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <Ambient.h>
#include "time.h"
const char* kWiFiSsid = "Wi-FiアクセスポイントのSSID";
@shining-corn
shining-corn / function.cpp
Last active May 10, 2020 09:27
llvm cpp example
View function.cpp
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
int main(int argc, char** argv) {
llvm::LLVMContext context;
llvm::IRBuilder<> builder(context);
llvm::Module mainModule("main", context);
llvm::Function* fMain = llvm::Function::Create(
@shining-corn
shining-corn / branch_sample_1.ll
Last active July 19, 2020 07:27
LLVM IR Sample Code
View branch_sample_1.ll
define i32 @main() {
br i1 1, label %label1, label %label2
label1:
ret i32 0
label2:
ret i32 1
}