- Download ATmega's support pack from Microchip's website
- Unzip the relevant files
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \
// Original code: https://gist.github.com/syzdek/eba233ca33e1b5a45a99 | |
// Original code license: | |
/* | |
* TOTP: Time-Based One-Time Password Algorithm | |
* Copyright (c) 2015, David M. Syzdek <david@syzdek.net> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are | |
* met: |
WAYLAND_PROTOCOLS=/usr/share/wayland-protocols | |
# wayland-scanner is a tool which generates C headers and rigging for Wayland | |
# protocols, which are specified in XML. wlroots requires you to rig these up | |
# to your build system yourself and provide them in the include path. | |
xdg-shell-protocol.h: | |
wayland-scanner server-header \ | |
$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ | |
xdg-shell-protocol.c: xdg-shell-protocol.h |
unzip -j Atmel.ATmega_DFP.x.y.zzz.atpack \
#ifndef RSJ_CONCURRENT_QUEUE_H | |
#define RSJ_CONCURRENT_QUEUE_H | |
/* | |
============================================================================== | |
Copyright 2019 Rory Jaffe | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at |
http://arduino.esp8266.com/stable/package_esp8266com_index.json | |
http://clkdiv8.com/download/package_clkdiv8_index.json | |
http://digistump.com/package_digistump_index.json | |
http://download.labs.mediatek.com/package_mtk_linkit_index.json | |
http://download.labs.mediatek.com/package_mtk_linkit_smart_7688_index.json | |
http://downloads.arduino.cc/packages/package_mkr1000_index.json | |
http://downloads.konekt.io/arduino/package_konekt_index.json | |
http://downloads.sodaq.net/package_sodaq_index.json | |
http://downloads.sodaq.net/package_sodaq_samd_index.json | |
http://drazzy.com/package_drazzy.com_index.json |
#pragma once | |
#include <imgui.h> | |
#include <imgui_internal.h> | |
// ImDrawList methods to display vertical text | |
/* | |
// TEST: inside a window: | |
ImGuiWindow* window = ImGui::GetCurrentWindow(); | |
ImDrawList* dl = window->DrawList; |
#pragma once | |
#include "IconsFontAwesome.h" // from https://github.com/juliettef/IconFontCppHeaders | |
namespace ImGui | |
{ | |
inline void SetupImGuiStyle( bool bStyleDark_, float alpha_ ) | |
{ |
#include <ImGuiHandler.hpp> | |
#include <imgui/imgui.h> | |
#include <iostream> | |
using namespace sf; | |
// This is the main rendering function that you have to implement and provide to ImGui (via setting up 'RenderDrawListsFn' in the ImGuiIO structure) | |
// If text or lines are blurry when integrating ImGui in your engine: |
bool ColorSelector(const char* pLabel, ImVec4& oRGBA) | |
{ | |
const ImU32 c_oColorGrey = ImGui::ColorConvertFloat4ToU32(ImVec4(0.75f,0.75f,0.75f,1.f)); | |
const ImU32 c_oColorBlack = ImGui::ColorConvertFloat4ToU32(ImVec4(0.f,0.f,0.f,1.f)); | |
const ImU32 c_oColorBlackTransparent = ImGui::ColorConvertFloat4ToU32(ImVec4(0.f,0.f,0.f,0.f)); | |
const ImU32 c_oColorWhite = ImGui::ColorConvertFloat4ToU32(ImVec4(1.f,1.f,1.f,1.f)); | |
ImGui::PushID(pLabel); | |
bool bRet = false; | |
ImGuiID iID = ImGui::GetID(pLabel); |