- 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: |
| # Example showing how to create a minimal GTK 4 app with a main window and on it a Wayland subsurface fed by Vulkan. | |
| # The FPS counter printed on the console should show about 60 fps on Gnome/Mutter. | |
| # One may need to install vulkan (the python package) from source. | |
| # Maybe same for pywayland. Mileage may vary. | |
| # I happen to have two discrete GPUs installed in the test computer, one AMD, one NVIDIA, and Intel integrated to top. | |
| # The Radeon is the main one running Gnome/Mutter (after some /usr/share/glvnd/egl_vendor.d/ symlinking happened, that is) | |
| # "Works for me" on the Radeon, when started from Gnome Terminal as python example4.py | |
| # Playing around with switcherooctl style env variables trying to get the Nvidia card to render vulkan while being composited to | |
| # the main window does not work though. |
| #!/bin/bash | |
| # NOTICE, EASY WAY FIRST: sudo apt install gnome-session-wayland | |
| # If easy way not work try this below: | |
| ################# 0 - Preparation ################## | |
| # Update and PPA | |
| sudo add-apt-repository -y ppa:wayland.admin/daily-builds; \ | |
| apt update; \ | |
| # | |
| # Depends | |
| sudo apt install -y doxygen xmlto; \ |
| // file: src/main.cpp | |
| #include <iostream> | |
| #include "glad/glad.h" | |
| #include "window.hpp" | |
| #include "nanovg.h" | |
| #define NANOVG_GL3_IMPLEMENTATION | |
| #include "nanovg_gl.h" |
| // CHANGES MADE: | |
| // Added more clarifying comments inside the function. | |
| // Removed MSVC warning C6011 - null pointer dereference. | |
| // Fixed a slight grammar error - "This demo app only demonstrate" => "This demo app only demonstrates" | |
| // Demonstrate using DockSpace() to create an explicit docking node within an existing window. | |
| // Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! | |
| // - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking. | |
| // - Drag from window menu button (upper-left button) to undock an entire node (all windows). | |
| // About dockspaces: |
| 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 |
| /******************************************************************************************* | |
| * | |
| * raylib [core] example - Third Person Orbit Camera Example | |
| * | |
| * Welcome to raylib! | |
| * | |
| * To test examples, just press F6 and execute raylib_compile_execute script | |
| * Note that compiled executable is placed in the same folder as .c file | |
| * | |
| * You can find all basic examples on C:\raylib\raylib\examples folder or |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <dirent.h> | |
| #include <sys/time.h> | |
| #include <wpa_ctrl.h> | |
| #define CTRL_INTERFACE_DIR "/var/run/wpa_supplicant/wlan0" | |
| int main(int argc, char *argv[]) { |
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 |