Page 2 of 2

Re: Install software on Vocore?

Posted: Wed Nov 02, 2016 2:33 pm
by GinDiamond
I got it!

I just had to change the opkg.conf files to a different repository. I deleted the lists opkg made, rebooted, and then did opkg update.

Python 2.7.10 works now, and I rendered a mandelbrot set fractal!

Code: Select all
minX = -2.0
maxX = 1.0
width = 78
height = 36
aspectRatio = 2

chars = " .,-:;i+hHM$*#@ "

yScale = (maxX-minX)*(float(height)/width)*aspectRatio

for y in range(height):
    line = ""
    for x in range(width):
        c = complex(minX+x*(maxX-minX)/width, y*yScale/height-yScale/2)
        z = c
        for char in chars:
            if abs(z) > 2:
                break
            z = z*z+c
        line += char
    print line


to get this:

Image