Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <sys/io.h>
#include <sys/perm.h>
#define BASEPORT 0x378
int main(void)
{
int inp = 0;
ioperm(BASEPORT+1,1,1); //rejestr statusu
#include <stdio.h>
#include <string.h>
#include <sys/io.h>
#include <sys/perm.h>
#define BASEPORT 0x378
int main(void)
{
int even = 0;
#include <stdio.h>
#include <string.h>
#include <unistd.h> //dla getopt
#include <time.h>
#include <stdlib.h> //bez tego pliku nagłówkowego atof zwraca 0 (!)
#include <sys/io.h>
#include <sys/perm.h>
#define BASEPORT 0x378
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#pybingraph.py - odczyt plików binarnych (domyślnie "test.bin") wygenerowanych przez lpr_timed
from ctypes import *
import pyqtgraph as pg
import numpy as np
import sys
#include <avr/io.h>
#include <avr/interrupt.h>
uint8_t pwmarray[4] = {1, 10, 50, 200}; //definicja tablicy
uint8_t count = 0; //licznik kolejnych przerwań od timera
void initialisation(void)
{
DDRC = 0x0F; //ustawienie PC 0, 1,2,3 jako wyjscia, zapis 000011111 szesnastkowo
TCCR2 |= _BV(CS20); // Ustawienie 8 bitowego timera2 z preskalerem przez 1
Informacje o komputerze:
Producent: Unknown
Model: Unknown
Rodzaj: Komputer stacjonarny
Nie wykryto panelu dotykowego
Informacje o procesorze:
Dostawca CPU: AuthenticAMD
Marka procesora: AMD Ryzen 7 1700 Eight-Core Processor
Rodzina CPU: 0x17
Informacje o komputerze:
Producent: Unknown
Model: Unknown
Rodzaj: Komputer stacjonarny
Nie wykryto panelu dotykowego
Informacje o procesorze:
Dostawca CPU: AuthenticAMD
Marka procesora: AMD Ryzen 7 1700 Eight-Core Processor
Rodzina CPU: 0x17
Informacje o komputerze:
Producent: Unknown
Model: Unknown
Rodzaj: Komputer stacjonarny
Nie wykryto panelu dotykowego
Informacje o procesorze:
Dostawca CPU: AuthenticAMD
Marka procesora: AMD Ryzen 7 1700 Eight-Core Processor
Rodzina CPU: 0x17
This file has been truncated, but you can view the full file.
SteamVR System Report created Sun Jul 28 19:51:06 2019
<Report>
SteamVR Version: 1.6.9 (1564184397)
SteamVR Date: 2019-07-27
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 5.2.4-050204-generic (kernel@sita) (gcc version 9.1.0 (Ubuntu 9.1.0-9ubuntu2)) #201907280731 SMP Sun Jul 28 07:33:45 UTC 2019
This file has been truncated, but you can view the full file.
SteamVR System Report created Sun Aug 11 20:32:24 2019
<Report>
SteamVR Version: 1.7.3 (1565394912)
SteamVR Date: 2019-08-10
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 5.2.4-050204-generic (kernel@sita) (gcc version 9.1.0 (Ubuntu 9.1.0-9ubuntu2)) #201907280731 SMP Sun Jul 28 07:33:45 UTC 2019