-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|693|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




spinal

Sine of Ints

18th October 2019

OK, attempted to pop the code into blitz for speed of testing etc. but for some reason this no work :-(
[code]
Graphics 800,600,0,2
Cls
Global numHills = 200
Global hillMin = 40
Global hillMax = 176-40
Dim hillTops(numHills)
Global offsetX = 0;
Gl*snip*


spinal

Sine of Ints

8th October 2019

OK, that's part 1 done! Many thinks to Jay for that!
Not sure if its the best way to produce a hilly terrain, but it looks OK :-)
[code]
Graphics 800,600,0,2
Cls
Dim cosTable(180)
;output = WriteFile(''cossine.txt'')
For t=0 To 180
y =*snip*


spinal

Sine of Ints

7th October 2019

Almost what I need!
[code]
Graphics 800,600,0,2
Cls
Dim cosTable(180)
;output = WriteFile(''cossine.txt'')
For t=0 To 180
y = 50+50*Cos(180-t)
; Plot t, y
cosTable(t) = y
; a$ = y + '',''
; WriteLine output, a$
Next
;CloseFil*snip*


spinal

Sine of Ints

7th October 2019

My brain has turned to mush.
[code]
Graphics 640,480,0,2
Cls
Dim cosTable(180)
;output = WriteFile(''cossine.txt'')
For t=0 To 180
y = 50+50*Cos(180-t)
Plot t, y
cosTable(t) = y
; a$ = y + '',''
; WriteLine output, a$
Next
;*snip*


spinal

Building a Touchable Keyboard

14th September 2019

Here is a quick example of using the ili9341 TFT that comes with a touch screen on an Arduino -
[code]
____TFT______ _Pro Micro_
[ ] T_IRQ -------- o A2
[ ] T_DO -------- o 14 (MISO)
.---[ ] T_DIN o MOSI
| [ ] T_CS -[1.5*snip*


spinal

Building a Touchable Keyboard

4th September 2019

Fixed, not a case of sensitivity, more a case of working or not working...
Anyway, resetting the SPI bus speed when trying to draw to the screen has fixed the problem...
[code]
void useTouch(){
digitalWrite(TFT_CS, HIGH);
digitalWrite(CS_PIN, LOW)*snip*


spinal

Building a Touchable Keyboard

2nd September 2019

Your kidding, so far today I've managed to get either the screen to work, but once the touch panel starts working the screen no longer works :-(
[code]
____TFT______ _Pro Micro_
[ ] T_IRQ -[1.5k]- o A2
[ ] T_DO -------- o 14 (MISO)
[ ] T_DI*snip*


spinal

Building a Touchable Keyboard

29th August 2019

I'm going to put this here because it took me all week to get it working again for some reason -
[code]
____TFT______ _Pro Micro_
[J1][ ] VCC -------- o VCC
[ ] GND -------- o GND
[ ] CS -[1.8k]- o 10
[ ] RESET -[1.8k]- o VCC
*snip*


spinal

Building a Touchable Keyboard

10th August 2019

OK, I'm half done. It seems there is a minor glitch though. It's detecting both joystick correctly, with each one sending the correct key presses. However, if both joysticks are pressing the same direction/button then it releases both. Can anyone s*snip*


spinal

Building a Touchable Keyboard

10th August 2019

This is the plan, I've just this second built a C64 joystick, I have a master system controller, created 2 joystick ports and I'm about to wire them up.
[code]
J1 J2 Arduino
(U)-----(U)-------18
(D)-----(D)-------19
(L)-----(L)-------20
*snip*


spinal

Creepy Mouse Tracking

20th July 2019

Cheated...
Rather than checking actual direction over distance, just checked if x/y was different and not 0. seems a little better than my older 'is it fast' method.
[code]
$xAxisOld = $xAxis
$xAxis = $curMX - $oldMX
if $xAxis < 0 then $*snip*


spinal

Taking a Longer Path

21st March 2019

I was thinking something along these lines...
[code]
Graphics 320,12,32,2
time1=MilliSecs()
a0=0:a1=0:a2=0:a3=0:a4=0:a5=0:a6=0:a7=0:a8=0:a9=0
fileout=WriteFile(''moves.txt'')
While a9<>3
a0=a0+1
If a0=4 Then a0=0:a1=a1+1
If a1=4 Then*snip*


spinal

Amiga Mouse

19th March 2019

All, but the original 500 mouse looked better and with those flat sides, would be easy to glue things to :-p
The Amiga mouse just passes all of the raw inputs directly to the computer for processing. It's really very similar to the 8-bit world of inpu*snip*


spinal

Making Universal Tools

3rd February 2019

Finished (enough for now) converter...
Will take an 8bit mono wav as input and turn it into an array that includes the samplerate and size.
[code]
<html>
<title>Wav to Pokitto</title>
<style type=''text/css''>

*snip*


spinal

Making Universal Tools

2nd February 2019

Here's a start, removed the output file for now, stuck in a txt box. I think it should do the job just right!
[code]
<html>
<style type=''text/css''>
body {background:#BB9977; color:#000000; font-family: ''Helvetica Neue&*snip*


spinal

*gfx++

28th January 2019

The odd thing I found with the above code, was that that was the only part of the function that seemed to break.
[code]
void twoBitTile(int x1, int y1, const uint8_t *gfx){
int8_t wide = *gfx; // first byte is width
*gfx++;
int8_t high = *gfx*snip*


spinal

*gfx++

27th January 2019

So, why does this
[code]
int8_t wide = *gfx; // first byte is width
*gfx++;
int8_t high = *gfx; // second byte is height
*gfx++;
[/code]
work, but this
[code]
int8_t wide = *gfx++; // first byte is width
int8_t high = **snip*


spinal

point between 2 numbers?

10th December 2018

[code]
float spd = (POK_AUD_FREQ / sampleRates[channel]);
snd[channel].speed = (speed/spd); // recalculated above
// Default method, fast but awful.
ss[s] = snd[s].currentSound[(snd[s].soundPoint*snd[s].speed*snip*


spinal

point between 2 numbers?

8th December 2018

either this isn't working, or it isn't the problme...
[code]
// ss[s] = snd[s].currentSound[(snd[s].soundPoint*snd[s].speed)>>8];

int var1 = (snd[s].soundPoint*snd[s].speed);
int var2 = (snd[s].soundPoint**snip*


spinal

point between 2 numbers?

8th December 2018

I'm stuck on the last part of my sound player. I need to smooth out my wave form (in real time), currently I am re-sampling based on nearest-neighbour type algorithm.
[code]ss[s] = snd[s].currentSound[(snd[s].soundPoint*snd[s].speed)>>8];[/code*snip*


spinal

Error: Expression must have integral or enum type???

17th November 2018

OK, I'm trying to do something that should be really simple and straight forward, but for some reason its throwing this stupid error.
[code]
Error: Expression must have integral or enum type in ''main.cpp'', Line: 182, Col: 33
[/code]
regar*snip*


spinal

raspberry pi screen issues.....

4th September 2018

I don't know how many people in here are Pi users, I do assume we have a bunch of linux users though.
Anyway, I am trying to get a small screen wirking on my pi by following the instructions here - (Linkage)
Anyway, after completing the steps, it doe*snip*


spinal

Jumps and Drops

16th August 2018

Surely this is correct?
[code]
if(player.x>= enemy.x){
if(player.y>= enemy.y){
enemy.direction = DROPRIGHT;
enemy.moving = 1;
}else{
enemy.direction = JUMPRIGHT;
enemy.moving = 1;
}
}else{
if(player.y<= enemy.y){
enemy.direction =*snip*


spinal

Extracting Frames

3rd July 2018

Here's a question...
The following code is only getting through about 10% of my video file before simply closing (it's not supposed to close, but wait for esc key) Can anyone see anything wrong with it?
Are there for example any limits to reading*snip*


spinal

Extracting Frames

25th June 2018

current conversion progress...
requirements - ffmpeg
The first step is to rip the frames from whatever video we use. The following bat file will rip all o fthe files and a nice small size, all images using the same 256 colour palette, while flipping the *snip*

Newer Posts More - Older Posts