This file contains hidden or 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
| String leftAlignFormat = "| %6s | %9.4f | %9.4f |%n"; | |
| System.out.format("+--------+-----------+-----------+%n"); | |
| System.out.format("| ID | EUR | USD |%n"); | |
| System.out.format("+--------+-----------+-----------|%n"); | |
| for (int i = 0; i < 11; i++) { | |
| System.out.format(leftAlignFormat, i+":", Math.pow((-1),i)*(Math.random()*100), Math.pow((-1),i)*(Math.random()*100)); | |
| } | |
| System.out.format("+--------+----------+------------|%n"); |
This file contains hidden or 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
| Nowak | |
| Kowalski | |
| Wiśniewski | |
| Dąbrowski | |
| Lewandowski | |
| Wójcik | |
| Kamiński | |
| Kowalczyk | |
| Zieliński | |
| Szymański |
This file contains hidden or 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
| int granica = 500; | |
| int czuj[3][8] = {A0, A1, A2, A3, A4, A5, A6, A7, 0, 0, 0, 0, 0, 0, 0, 0, -30, -20, -10, 0, 0, 10, 20, 30}; | |
| int pwm = 100; | |
| int cnt = 0; | |
| int error = 0; | |
| int silnikL = 0, silnikP = 0; | |
| void setup() { | |
| //inicjalizacja pin\ow do mostka H | |
| //pwm dla silnikow | |
| //ledy |
This file contains hidden or 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
| public enum Mode | |
| { | |
| Low = 0, | |
| High = 1, | |
| Toggle = 2 |
This file contains hidden or 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
| Gamepad controller; | |
| DispatcherTimer dispatcherTimer; | |
| TimeSpan period = TimeSpan.FromMilliseconds(50); | |
| public MainPage() | |
| { | |
| this.InitializeComponent(); | |
| dispatcherTimer = new DispatcherTimer(); | |
| dispatcherTimer.Tick += dispatcherTimer_Tick; | |
| dispatcherTimer.Start(); |