This file contains 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
' Przerzutnik JK wyzwalany zboczem narastającym - emulacja sprzętowa na mikrokontrolerze ATtiny2313 | |
' Portb.1 - wyjście Q | |
' Portd.4 - wejście J | |
' Portd.5 - wejście K | |
' Sygnał zegarowy - przerwanie wewnętrzne od timera 1 (częstotliwość: 0,5Hz) | |
' Uwaga: do portów D4 i D5 podłączono przyciski zwierające do masy, w związku z czym naciśnięcie, rozumiane przez | |
' użytkownika jako jedynka logiczna, z punktu widzenia mikrokontrolera jest zerem logicznym (patrz: kod podprogramu | |
' obsługi przerwania). |
This file contains 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
' Licznik binarny - demonstracja prostej obsługi magistrali I2C. | |
' - element master - MCU | |
' - element slave - PCF8574AP (ekspander magistrali I2C) | |
' Sterowanie LED-ami (zwrócić uwagę na prawidłowy sposób zasilania LED-ów przez PCD8574AP) | |
$regfile = "attiny2313.dat" | |
$Crystal=4000000 | |
$hwstack=40 | |
$swstack=16 | |
$framesize=32 |
This file contains 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
' Część 1: | |
' Licznik binarny - demonstracja prostej obsługi magistrali I2C. | |
' - element master - MCU | |
' - element slave - PCF8574AP (ekspander magistrali I2C) | |
' Sterowanie LED-ami (zwrócić uwagę na prawidłowy sposób zasilania LED-ów przez PCD8574AP) | |
' Część 2: | |
' Przerzutnik JK katywny zboczem narastającym - emulacja sprzętowa na mikrokontrolerze ATtiny2313 | |
' Portb.1 - wyjście Q | |
' Portd.4 - wejście J |
This file contains 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
/* | |
Robot zdalnie sterowany z wykrywaczem przeszkód. | |
"Gnomonek" v 1.0 | |
Opis funkcji pilota: | |
- Power - bazwzględne zatrzymanie silników i wyłączenie fizycznych reakcji na komendy sterujące; | |
- Up - przyspieszanie (od 0 lub wartości aktualnej do 255) | |
- Down - zwalniania (od 255 lub wartości aktualnej do 0) | |
- Mode - skręt w lewo (krótkotrwałe zatrzymanie lewego silnika) | |
- OK - skręt w prawo (krótkotrwałe zatrzymanie prawego silnika) |
This file contains 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
/* | |
* Created on 2005-06-15 | |
* | |
* TODO To change the template for this generated file go to | |
* Window - Preferences - Java - Code Style - Code Templates | |
*/ | |
package rw.animacja; | |
import java.awt.Color; | |
import java.awt.Cursor; |
This file contains 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
/** | |
* | |
*/ | |
package rw.animacja; | |
import javax.swing.*; | |
/** | |
* @author Rafał Wileczek | |
* |
This file contains 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
/* | |
* Created on 2005-06-15 | |
* | |
* TODO To change the template for this generated file go to | |
* Window - Preferences - Java - Code Style - Code Templates | |
*/ | |
package rw.animacja; | |
import java.awt.Color; | |
import java.awt.Cursor; |
This file contains 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
# -*- coding: UTF8 -*- | |
# Zapis informacji o położeniu (rejestracja ścieżki) | |
# w oparciu o dane z modułu GPS. | |
# Wersja dla telefonów Nokia (S60). | |
import positioning | |
import sys | |
import os | |
from time import sleep | |
from datetime import datetime |
This file contains 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
#!/usr/bin/env node | |
// Bardzo^3 prosty CURL-like | |
// Wywołanie: | |
// node requesturl.js adres_strony_bez_http | |
// np.: | |
// node requesturl.js wileczeknet.blogspot.com | |
var http = require("http"); |
This file contains 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
#!/usr/bin/env node | |
var http = require("http"); | |
var req_opts = { | |
host: "127.0.0.1", | |
port: 8888, | |
method: "POST", | |
path: "/upload" | |
}; |
OlderNewer