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




spinal

Machine Made Max

10th March 2023

It's getting better...
[code]
import random
import time
import wave
import tempfile
import os
import numpy as np
import pyttsx3
import pyaudio
import re
#from datetime import datetime
#random.seed(datetime.now().timestamp())

def spea*snip*


spinal

Machine Made Max

8th March 2023

[code]
import random
import time
import wave
import tempfile
import os
import numpy as np
import pyttsx3
import pyaudio
def speak(text):
# Initialize the text-to-speech engine
engine = pyttsx3.init()
# Set the text-to-speech paramet*snip*


spinal

Machine Made Max

5th March 2023

Don't know, I have no idea what it's doing :-D
[code]
import pyttsx3
import random
import time
import numpy as np
import wave
import playsound
# Initialize the TTS engine with the default voice
engine = pyttsx3.init()
# Get the user input*snip*


spinal

Machine Made Max

5th March 2023

socoder.net
Getting there.
[code]
import pyttsx3
import random
import time
import numpy as np
import wave
import playsound
# Initialize the TTS engine with the default voice
engine = pyttsx3.init()
# Get the user input
text = input(''Enter *snip*


spinal

SmileBASIC Switch - Sale

20th February 2023

hmmmm.... I can see that something is wrong here.... but what?
Blitz3D = Nice dithery gradient
[code]
Graphics 1280,720,0,2
r1=27
g1=114
b1=210
r2=21
g2=91
b2=163
width = 1280
For y = 0 To 720
For x=0 To width
r = r1 + (x * (r2-r1) / width)*snip*


spinal

SmileBASIC Switch - Sale

18th February 2023

OK this 'use the joystick' idea has me confused...
I have
[code]
uint8_t joyLookUp[]={0,85,170,255};
// myData = 1 byte (0-255) being read from a file
ReportData->LX = joyLookUp[(myData>>6)&3];
ReportData->LY = joyLookUp[(myDa*snip*


spinal

Anyone any good at java?

4th January 2023

[code]
For n = 0 to 2
? ''Those were the days''
Next n
[/code]


spinal

Anyone any good at java?

4th January 2023

OK, maybe a bit further, changed the ext.kotlin_version to 1.7.0 in build.gradle...
[code]
buildscript {
ext.kotlin_version = '1.7.0'
[/code]
[edit] OK, a little further, but still completely lost...
[code] lateinit var bleManager: Ble*snip*


spinal

N64 Controller Project...

3rd October 2022

I'm 50% sure I have, but I can't find anything on myhard drive other than the usb adapter part, and that didn't support rumble.
I did also do a PS2 to N64 adapter, and I remember doing a Wii to N64 adapter also.
And here be a list of distance*snip*


spinal

N64 Controller Project...

2nd October 2022

Here is the Arduino code for my N64 joystick replacement. It should work fine on any Arduino compatible device, just wire up the potentiometer outputs the the defined pins in the code and you're good to go.
Question 1 - Why?
Because both replacemtn a*snip*


spinal

Too many parameters!!!???

22nd September 2022

OK, odd problem, this code was working fine, no issues at all, I was just about to post it here and go, ''Here guys this is the latest waste of time I did...'' when bam! it suddently stopped working!
Apparently there are now ''Too Many Paramet*snip*


spinal

SmileBASIC Switch - Sale

25th August 2022

Arduino part driving me crazy again.
[code]
if(digitalRead(DPAD_DOWN)==LOW){
while(digitalRead(DPAD_DOWN)==LOW){;}
fileNumber++;
updateList=true;
}else if(digitalRead(DPAD_UP)==LOW){
while(digitalRead(DPAD_UP)==LOW){;*snip*


spinal

SmileBASIC Switch - Sale

1st August 2022

Screenshots to the rescue!
(Image.png)
Invert colours, reduce palette, Online OCR, cleanup...
[code]
' MAIN. PRGw
GCLS
CLS
XSCREEN 1280,720,1,2
'GTarget 4
'PRINT “MAKING RANDOM BACKGROUND''
'GTARGET 4
'FOR Y = 6 T*snip*


spinal

SmileBASIC Switch - Sale

19th July 2022

hmmm, keyboard input not working, the arduino types fine on the editor screen, but I cant accuratly detect keypresses in the program :-(
The following two idea are very hit+miss, sometimes receives some keypresse, mostly none though.
[code]
DEF READNIBB*snip*


spinal

SmileBASIC Switch - Sale

5th July 2022

Right now I'm suffering ''file not found'' on my only file! :-P
F10 into tile editor, draw some doodles, save as ''sprites''.
go back into main.prg, use
[code]
LOAD''SPRITES'',4
[/code]
get ''file not found'' scree*snip*


spinal

Data -> ADPCM -> Data

27th May 2022

Aha!
(Image.png)
[code]
; Blitz3D
; (Linkage)
;Graphics 320,240,0,2
Dim StepSizeTable(89)
Dim IndexTable(16)
For t = 0 To 15
Read IndexTable(t)
Next
;/* Table of index changes */
Data -1, -1, -1, -1, 2, 4, 6, 8
Data -1, -1, -1, -1, 2, 4, 6,*snip*


spinal

Data -> ADPCM -> Data

27th May 2022

OK, next question...
[code]
Graphics 320,240,0,2
Dim StepSizeTable(89)
Dim IndexTable(16)
For t = 0 To 15
Read IndexTable(t)
Next
;/* Table of index changes */
Data -1, -1, -1, -1, 2, 4, 6, 8
Data -1, -1, -1, -1, 2, 4, 6, 8
For t = 0 To 88
Re*snip*


spinal

Data -> ADPCM -> Data

16th May 2022

Grrrrr, Closer, yet further...
(Image.png)
[code]
; Blitz3D
; (Linkage)
Graphics 1024,900,0,2
Dim StepSizeTable(89)
Dim IndexTable(16)
For t = 0 To 15
Read IndexTable(t)
Next
;/* Table of index changes */
Data 255, 255, 255, 255, 2, 4, 6, 8 *snip*


spinal

Data -> ADPCM -> Data

15th May 2022

hmmm..... Can't tell if better or worse :-P
[code]
; Blitz3D
Graphics 1024,900,0,2
Dim IndexTable(16)
Dim StepSizeTable(89)
For t = 0 To 15
Read IndexTable(t)
Next
;/* Table of index changes */
Data -1, -1, -1, -1, 2, 4, 6, 8
Data -1, -1, -*snip*


spinal

Data -> ADPCM -> Data

15th May 2022

Slightly better...
[code]
; Blitz3D
Graphics 1024,900,0,2
Dim IndexTable(16)
Dim StepSizeTable(89)
For t = 0 To 15
Read IndexTable(t)
Next
;/* Table of index changes */
Data 255, 255, 255, 255, 2, 4, 6, 8
Data 255, 255, 255, 255, 2, 4, 6, 8
Fo*snip*


spinal

Data -> ADPCM -> Data

14th May 2022

OK, I've been trying to decode ADPCM audio using the many identical code examples online, but fail each and every time. So I thought I'd give it a go in blitz, using image data so I could SEE whats going on.
Turns out, it either doesn't work O*snip*


spinal

Building a Touchable Keyboard

1st April 2022

OK, The following code increases the RGB value for every single pixel in a 256x256 grid.
[code]
for(int y=0; y<256; y++){
for(int x=0; x<256; x++){
lineBuffer[x] = colour++;
}
tft.pushImage(0, y, 480, 1, lineBuffer);
}
[*snip*


spinal

Building a Touchable Keyboard

21st March 2022

OK, before going any further, here is the current working code, It has screen, touch and SD card working on the raspberry pi pico through arduino libraries.
The following code first blanks the screen then waits for a serial window to be opened on the comp*snip*


spinal

Abs error?

12th March 2022

[code]
Graphics 800,600,0,2
settingcolour = 0
SetBuffer BackBuffer()
; crop to 336x336
; from 62,10
; 194 images
imageStrip = CreateImage(sWidth, sHeight)
tempImage = CreateImage(336,336)
myAnim = LoadImage(''C:\\Users\\Spinal\\Desktop\\brains\\til*snip*


spinal

Abs error?

12th March 2022

With 3 arrays like following...
[code]
Dim maskR(336,336)
Dim maskG(336,336)
Dim maskB(336,336)
[/code]
The following code gives an ''Operator can not be applied to stings'' error on the [code]If Abs(maskB(x,y)-b) < 100 Then[/code]
line. *snip*

Newer Posts More - Older Posts