IT’s HERE! Half-Byte Tiny Basic 3!

randomdotsOne of the things I have really enjoyed since embarking on my Arduino journey and this blog, is seeing others take things I’ve worked on or created and expand upon it. This is especially true with Half-Byte Tiny Basic, something that started out as the work of Mike Field, who, himself used the work of another person. HB Tiny Basic is an iterative work, built on the work of others as well as myself.  For HB Tiny Basic 3, I have incorporated the work of others to make it better.  I would love to take credit for these changes, but, I cannot.  This release is strictly due to Hill Satoshi of the Hirosaki University Faculty of Education and someone named ‘Koyama’.  A Big thanks to them.

Please visit Hill Satoshi’s page. There are a lot of great ideas, basic electronics information and some code snippets…be careful, some features of the basic there were not incorporated in HB Tiny Basic, like the motor control and PLOT (which is the same as Set and Reset.)

Among the additions and changes are an auto load and auto run feature (requested by many of you) and a better eSave and eLoad feature.  In fact, I like much of what was done to the language and may incorporate more at a later date.

So, what’s new?

Two new statements have been added: NUMLED and BMP.  A new function, TREAD.  The aforementioned auto load and auto save feature.  Three new operators: %, & and |. % returns the remainder of a division, & is logical AND and | is a logical OR.

What’s changed?

The code to do a eSave or eLoad has changed and should be more reliable.  The startup code has changed a little, dynamically calculating the amount of ram that is available.  Ability to read in characters from the serial input as if it were the keyboard. This means you can connect to a serial terminal and enter and run Tiny Basic code without a PS/2 Keyboard attached. And a few minor tweaks here and there.

New Statements

The first new statement is NUMLED.  If you connect a seven segment LED directly to the device you are running HB Tiny Basic on, you can output directly to the LED.  The syntax is:

NUMLED x  where x is a digit from 0 to 9.

EXAMPLE:

20 for I=0 to 9

30 numled I

40 delay 1000

50 next I

60 goto 20

BMP

BMP allows you to draw a bitmap on the screen.  It is very much like the DRAW statement in old Microsoft Basics. It feature its own mini design language for you to draw on the screen. A minimum of three parameters are required: x,y,string.  Where x and y are the start points and string is the definition.

Table of Commands for Mini Language:

CMD

Pattern
(0 is black;
1 is white)

CMD

PATTERN
(0 is black;
1 is white)

0
1
2
3
4
5
6
7

0000
0001
0010
0011
0100
0101
0110
0111

8
9
A
B
C
D
E
F

1000
1001
1010
1011
1100
1101
1110
1111

 

EXAMPLE:

10 cls 
20 bmp0,0,"ffffc00000007fff","ffffc00000001fff", "fffe0000000003ff","fffc0000000000ff", "fff80000000000ff","fff000000000007f", "ffe000000000003f","ff0000000000003f" 
30 bmp0,8,"ff0000000000001f","ff2f00000000000f", "ff1fc0000000000f","ff000c000000000f", "ff003f000000000f","ff0020400000000f", "fc0000fc1800000f","fc00000f7f3c000f" 
40 bmp0,16,"f80000037f7e000f","f8000000007e0003", "f01c00c0001cf7c3","f03e03c00000efcf", "f03e07c00e00000f","c03f1ff01f000003", "c03ffff03f800003","cf3ffff87fc380c3" 
50 bmp0,24,"ce3fffffffc3c0c3","c03fc03fffe7f1cf", "c03f003ffffff3c0","ff3fff3fff0fff88", "ff1ffffffc0fff1c","ff9ffffff043ff3c", "ff8fffc03ff3ff38","ff8fffc03ff3fe00" 
60 bmp0,32,"ffcfffff3ffffc01","ffc7fffffffffcff", "ffc3fffffffff8ff","fff3ff007ffff1ff", "fff1ff0c7fffc3ff","fff0ff0c7fffc7ff", "fffc7f0c7fff8fff","fffe3f807ffe1fff"
70 bmp0,40,"ffff3fc0fffe3fff","ffff07c3fff07fff", "fff023ffffe1ffff","ffe0203fff83ffff", "ff07e00000003fff","fc0fe3ffff8f0fff", "fc3fe3ffff8f0fff","f0ffe3ffff8fc1ff" 
80 shift 1,3:delay 99:goto 80

 

Aviary Photo_131159334768733501

The example code above produces this bitmap.

New Function:

TREAD is an alternate method for reading a temperature sensor. It does not require any additional libraries and reads the sensor directly. Usage is: Var=TREAD(pin)  where pin is A0 to A7.

EXAMPLE:

100 a=TREAD(A3)

The example reads in a value between –30 and 50 degrees Celsius.

Auto Load and Auto Save

HB Tiny Basic will now load the saved program in EEPROM.  You have three seconds to press a key or the loaded program will auto run.  If you press a key in those three seconds, you will get the normal prompt as in the past.  This feature is useful if you want to use HB Tiny Basic for embedded use or simply to restart if the device loses power.  There are a lot of uses for this feature.

Other small changes have been made, but are not worth discussing as they are mostly cosmetic or code optimizations.

In reviewing my code, I see just how sloppy it has become. I am going to clean it up, but, until I do, please feel free to offer up any suggestions you may have for features or changes.  As always, the code is free and open.  I ask that you leave the regular header intact, at the top of the code. I want all involved to be recognized.

Thanks and let us know what you do with Half-Byte Tiny Basic.

Download Link: Half-Byte Tiny Basic 3

Pebble Smartwatch and Windows Mobile 10: working, at last

WP_20160815_20_13_28_ProSince I got my Pebble Classic Smartwatch, I’ve only been able to use a smattering of its features. The problem is that Pebble does not and, apparently, will not, support the watch on Windows Mobile.  But, as the watch is very open, anyone is free to develop software to run on the watch and companion apps on any platform.  So, several enterprising souls did that. The second big issue was that Microsoft closed off parts of Windows Mobile-notifications and running in the background-which pretty much killed most of the functionality.

Well, fast forward a year and Microsoft has released Windows Mobile 10 Anniversary Update which fixed these issues.

So, there are now two apps that work with the Pebble smartwatch line of wearables: Pebble  Time Manager 10 and Pebble Essentials.WP_20160815_20_16_37_Pro

I downloaded Pebble Time Manager 10 and began using it.  For a free app, this thing rocks.  I did plunk down a buck to ‘unlock’ the health features and to give the developer SOMETHING for this great product, which is free.  Did I mention it is free?

Pebble Essentials I have not yet tried out, but will sometime soon. This write up is about the Time Manager.

Pebble Time Manager allows you to:

  • Download and install apps and watch faces from the Pebble store
  • Display all notifications from your mobile device
  • Track your health stats (provided you paid for the module AND your watch supports it)
  • Manage installed apps and watch faces
  • Direct Access to the Pebble Store

The notifications is huge.  Being able to get my phone’s notifications and NOT have to have an app running is tremendous.  Previously, you could get Twitter, Weather, email and, maybe Facebook notices but an app had to be running. Since the Windows AU came along, you no longer have to do that. You still run the app, but you can then dismiss it and the notifications keep on going.

WP_20160815_20_14_15_ProThe other big deal is direct access to the store.  Tap an app or watch face and see everything about. Tap the download icon and download the item to your phone. Tap it on the phone and it is sent to the watch.  The app, however, cannot tell you how much space you have, though.

Some watch apps require a settings page. Previously, you just took the defaults, but TIme Manager incorporates the ability to access and use these settings.  A nice touch.

The user interface could use some polish, but it works and is functional, if not a bit bland.  It does not have to be pretty, though, because it just works. And works well.

All in all, the app is worth much more than the developer charges (which is nothing) and is very easy to use. 

Stay tuned for more.  There are a lot of things it will do and some it won’t.  Oh, there’s a desktop version as well.

Upgrading Your Toshiba Encore Mini from Windows 10 to Windows 10 Anniversary Update

I have a Toshiba Encore Mini Tablet that I bought a couple of years ago and managed to upgrade it to Windows 10 last year. I document that effort here.  It was quite a task as the Encore Mini is really crippled: 1 gb of RAM and only 16 gb of storage. Minimal, indeed.  So, how was going to do this upgrade?  Well, pretty much the same way as the original upgrade.

Since I do not use the Toshiba for much, mostly Candy Crush, web browsing and some video watching, I didn’t have a whole lot on the device. So, the first thing I had to do was clean it up.

I freed about two gigs of space and then tried the upgrade using the system update.  That did not work. I needed over five gigs on C:\, which would be next impossible. Windows itself takes nearly ten of the sixteen gigs, so freeing 5.76gb was a no go.  So, I tried to use an SD card. I put in a 32 gb card and tried again, this time telling it to use the SD card. That bloody thing still needed nearly three gb on C:!

I then remembered the Media Creation Tool.  I put the card in my desktop and fired up the tool.  UGH! It did not let me use the SD card!

WP_20160804_21_48_19_ProI figured out, as well, that the bloody SD card was bad. I kept having to format it…which you should not have to do. I put it aside and found a 16gb card.  I then tried everything again and…failure greeted me at every step.  As a last ditch effort, I downloaded the 32 bit ISO to the SD card. Put it in the Toshiba, mounted the ISO as a drive and ran setup from there.

Setup did point out the lack of space on C:\ but did allow me to use the SD card AND 2gb on C:\.

The upgrade took quite a bit of time.  I’m not sure, because, after an hour, I went to bed.  I finished overnight.

When it finished the initial user setup, it began to hang on me.  I tried everything I could think of, even trying to reset the operating system using the OS Refresh/Reset feature. They, too, locked up. On a whim, I removed the SD card and rebooted the tablet.  It has worked perfectly since.  I have WP_20160805_07_38_37_Proformatted a 4gb SD card and that has been working splendidly.  I’m not sure why the ISO SD Card caused a problem, but I am also glad I figured out what was wrong.

The tablet has been running well.  It is a bit speedier, but that might be because it is a new install of Windows.

So, there you go, a tablet that, by any definition, is a turd, has been upgraded–not painlessly–to the latest and greatest Windows.  Life is good.

NOTE: One issue I had, post upgrade, was that Windows would stop responding after logging in.  After about 20 to 30 seconds, what ever was running would continue, but shell would stop.  I solved the problem by dismounting and removing the SD card that contained the ISO.

Casio Calculator Watches…the original smartwatch

Back in the mid 1980’s, miniaturization and micro electronics were coming into the mass market at prices people could afford.  Pocket television, pocketable computers, small calculators and digital watches were common place.  Digital Watches, which began as consumer products in the late seventies, were in full swing with watches that mimmicked analog watches, watches that played a game, ‘databank’ watches and calculator watches. 

CasioWatchOh man, the calculator watch.  Casio. 

I had to have one.

When they first came out, they were expensive.  But, seemingly, overnight, the price plunged and I could afford one.  I bought myself a Casio. I don’t remember the model number, but I recall it was sleek, black with white trim and it could store 16 memos or something like that. It was very cool.

I had that watch for years. In fact, I had it up until my last move, some five years ago. The case broke right where strap is held in place by the pin.  I think I replaced the battery once in the twenty some years I had it. WP_20160804_21_35_542_Pro

The calculator watch, like most digital watches, faded away.  Forgotten.  Or, so it seemed.

I don’t know if the current ‘smartwatch’ fad has anything to do with it, but I saw them on sale at my local CVS drug store.  For five dollars.  I had to buy it.

Now, this thing is cheap, it looks cheap and feels cheap.  But…it’s a bloody CAL-CU-LATOR WATCH!  How freaking cool is that?!  Is it just me?

Anyway, I don’t care how long it lasts, I like it and it took me down memory lane.   Best five dollars spent in a long time.

64 bit graphical hand held

I read a post on Hackaday about a ‘64 bit graphics’ hand held game system powered by the atmel 328…an Arduino Uno like handheld.  Well, the headline was a bit deceptive, the 64 bit part was correct, as there is an 8×8 LED matrix being use for the ‘screen’. 

WP_20160702_03_18_57_Pro (2)This is actually something I had toyed with building for quite a while now.  I had seen several (Super Pixel Brothers being the first) and, after seeing this particular build, I thought…why not?  I have a lot of those matrices lying about, so I took my last unbuilt matrix (it was a ‘kit’) and used it as the basis of my console.

I used my previous handheld build as the basis for this one, which was also very similar to the Hackaday build.  I guess there aren’t many different to do this.

My build has four buttons: Reset, left, right and action.  I deviated from the article’s build and used a battery pack that has three AA batteries.  The unit ran nearly 24 hours on those three batteries.

While I have the hardware complete, I am working on software. The article’s build has six games: space invaders, pong, racing and three others.

So, I now have a piece of nice hardware and nothing running on it.  I’m thinking about adapting the Super Pixel Brothers to the handheld or doing a Space Invaders type game.  Not sure yet. Heck, I WP_20160630_21_10_14_Promay just put several pre-programmed messages and use the buttons to select them. 

What would you do?  Thoughts on software/games?  Leave them in the comments below.

 

Link to the Hackaday article: http://hackaday.com/2016/06/25/this-arduino-console-has-64-bit-graphics/

Microsoft, Apple, T-Mobile…They take a lot and give little

win10mobileT-Mobile.  The Un-Carrier.  This company, led by it’s uncool CEO, John Legere, claims to be different.  And, in a few regards, that is true.  They led the march to do away with subsidies and contracts.  Getting rid of the contracts was a good thing.  However, the replacement plans by T-Mobile and the others leave little to be desired.  This company also bills itself as having a fast, reliable network.  That’s debatable. In the Richmond, Virginia area, anyway, they are spotty—despite having PINK all over the area map.  Speeds are so-so.  They also advertise the binge-on program where you can consume all of the video streaming, from a select few services, and won’t affect your data or speed. What they fail to say is that you need specific plans to qualify.  Lastly, the ‘Get Thanked Tuesdays’ promotion only applies to certain customers—i.e. those who have Android or iOS devices and those not on prepaid plans. If you have a Windows Phone/Mobile, Blackberry or other device or you have those and are on a pre paid plan, you are out of luck. No thanks on Tuesdays or any other day.  (To be fair, they did try  to make up for it by giving me a credit, free pizza and, in last Tuesday’s event, they texted me the codes—but did not mention I had to use them right away. My fault there, though, it is in the rules.)  The no hoops, hurdles and strings mantra does not apply if you use anything but iOS or Android.

Apple.  Another company that loves to dump on its customers. But, Apple, at least, makes you feel good about getting dumped on. Hell, it’s a PRIVILAGE.  This company has, for the most part, products that, if from any other company, would put you to sleep. But, they slap that stupid logo on them, charge a mint and invite you into these sterile, wood and glass stores, and attempt to make you feel like you OWE them a purchase.  What’s really odd…and lame…is the uniforms the employees wear…..JEANS and BLUE T-SHIRTS.  What the hell is that?  You want me to pay two grand for a computer, I’m in what is supposed to look like a high-end store, and the person who is assisting me is dressed as if he or she was playing kick ball on a school lunch break? Seriously?  And what’s up with that stupid watch?

Microsoft. OH MY LORD.  This company makes it damn near impossible to like.  Everything I have liked, from the Zune to Windows Mobile 10 to Windows 10 itself, has had features removed, been crippled in some way or out right cancelled. I don’t’ need to say anything about Zune…its dead and so is my 30gb player. So, I’ll move on…to Windows Mobile 10. Now, a few years ago, MS bought Nokia’s phone business.  And promptly drove it into the ground.  They released Windows Mobile 10 by gutting many of the nice features of Windows Phone 8, including stability, reliability and many, many features like the hubs.  Now, the company says they are removing features because no one uses them, like FM Radio and the Kids Corner.  Guess what? I DO! This is the same reason they removed Media Center from Desktop Windows. Guess what? I used that too.  Now, Microsoft is further limiting another of its once great products: OneDrive.  They lured you in with tons of free online storage, then cut it all out but 5gb (like Apple) but you could still do a lot. Now, that is being limited as well. You cannot use it to share files a lot or share large files. I guess they are getting hammered for bandwidth. I don’t care, they opened the door and invited us in, now they want to boot us out after an hour.  Why should I bother at all?  They did this with remote sharing as well.  They killed off a terrific photography tool, photosynth.  Their OneCare was great, they killed it.  Windows Mobile has the potential to still be great, even with all of the neutering but, it, too, will languish. That’s what this company does best.

Honorable Mention: GOOGLE. Man, I could rant for days, but I’m not.  Suffice it to say that I will likely be forced to use Android again. I don’t like Android, but my distaste for iOS is worse than my dislike of Android.  One last thing, Google is far worse than Microsoft when it comes to product support and growth. Just look at the Google dead product grave yard.

This may sound like sour grapes, and to some extent, it is.  I’ve been burned a lot by these and other companies.  However, the problems stated here affect more than just myself. In the case of Apple, the deception costs real money.  In the case of Microsoft, it’s not only money, but a lot of frustration as well.  This company needs to stop its practice of introducing things, getting you hooked and then either taking them away or severely handicapping them.  It has really made me re-think my whole Microsoft affinity. 

So, what great Android phones are out there?  I need a good, non-Apple replacement for my Zune too.  My Zune HD is starting to have problems and I don’t know how much longer Windows will run the Zune software.  I want a dedicated MP3 player, I don’t like using my phone for media.  Lastly, what online storage solutions are out there that are low cost or free and are unfettered? 

T-Mobile, the un-carrier, is just like the others

5055w_front_back-groupRegular readers of this blog know I am a Windows Mobile user and, dare I say, fan.  I am on my third Windows Mobile phone now (Two Nokia’s and one Alcatel-Onetouch) Two of the phones I used on T-Mobile and one on Verizon.  My experience with Verizon was, I thought, the pits.  This company cares nothing about any of its users except for those using Apple products. Android and other devices are treated like second rate citizens.

So, after getting fed up with Verizon’s treatment of the Windows Mobile devices, I decided to buy into John Legere’s statements about the un-carrier, T-Mobile. Now, I had used them while on Sprint.  I got a Nokia Lumia 521 to see if I would even like Windows Phone (as it was called then) and, if I did, perhaps I would switch us over to them. Well, the Icon was released on Verizon and that was the phone I wanted anyway. So, once my Sprint contract was up, I went to Verizon.  That was prior to realizing just how poorly they treat their customers and what they thought of anything other than Apple. I should have known when the salesperson laughed when I asked about the Windows stuff.

When my Icon got to the point where it was only staying charged for a few hours, I decided to jump to T-Mobile, they had just gotten the Alcatel Onetouch Fierce XL with Windows 10.  Not a terrific phone, but it was more up to date and fairly cheap, $140 US. So, I switched.

After a few days, I realize the coverage really isn’t that great.  Then I got an email inviting me to use a couple of apps to make the experience better. Guess what? Those apps were for iOS and Android. Guess how many apps they have for Windows Mobile? TWO.  The account app, which is just a wrapper for the mobile ‘My T-Mobile’ site and the TV app.  Thanks, t-mobile.

Then, because I selected the 3gb Simply Prepaid plan, I discover I am not eligible for the Binge On feature they so heavily promote. Now I feel like I’ve been mislead.

Then, Mr. Legere want’s to ‘thank’ everyone for using T-Mobile. Great.  I go to participate only to hit road block after road block.  There’s no app for the Windows or Blackberry devices, so you are directed to a crappy web site. I go there, only to be told I am in-eligible because…get this…I am PREPAID.  I have to use the APP for that. Buuuut….there’s no app for my device.  Seriously? So, I take to Twitter. Bitterly complaining, even whining about it.  At that point, I wasn’t so much interested in free stuff (though that is always a good thing, right?) but was more upset over the misleading ads, tweets and bs from T-Mobile about this and everything else. It was, as they say, the straw that broke the camel’s back.

I got some nice responses from T-Mobile’s Twitter response team. They even gave me free Pizza from Domino’s, which my family thoroughly enjoyed.  I was told the ‘problem’ was fixed, I’d be able to participate.

So…it’s T-Mobile Tuesday again and I try. And get the same ineligible message I got the first time. So, back to Twitter.  Direct Message, then tweeted it.  I got a response:

“I care about you and want to make sure you can properly get thanked for being a T-Mobile customer.  Currently prepaid can only play on the app versions.  I know this is never fun hearing when you have a device that this does not work with.  I care about you and we love having you as a customer.  I have offset your account with a $40 credit as a one time courtesy to show you that we truly value you as a customer. 

Your current plan does not have Binge On, but it does have Data maximizer: If you activated a Simply Prepaid plan on or after January 24, 2016, then you already have our Data Maximizer, a network enhancement that optimizes all detectable video streaming to DVD-quality (typically 480p or better). This feature is automatically enabled, allowing your high-speed data to last up to 3 times longer.  We do have Binge on available on our $65 North american prepaid plan that includes 6GB of web and I would be delighted to help change to that plan,  if that is something that you would like.
*NevinB”

So, while they gave me a forty dollar credit-thanks for that-I am told, bluntly, that I’m not good enough because of my device and plan selections, even though they had said ‘all customers’ and I was told specifically, that it was fixed. I was also told that prepaid or not, I should be able to use the web site.  Basically, they lied.

“Everything should be working now can you give Firefox another go and try Chrome for us as well? If it still fails can you provide us your version numbers for both browsers? We’ll keep working on this until you are a part of T-Mobile Tuesdays and get to join in on all the great merch! Additionally can we give you a call tomorrow and start setting things right? A time including your time zone would be greatly appreciated.  *KeithM”

Again, it isn’t about getting something for nothing. It’s being mislead and outright lied to…by the help desk staff, by the ads and by Mr. Legere himself.  So, like Sprint and Verizon, if you don’t get their expensive plan and phone, then you don’t matter.

As for the wrong platform, that’s just nonsense…Microsoft offers tools that takes iOS app source code and converts it UWP code. From what I understand, it is a rather straightforward process and does not take a lot of time.  There are several apps out in the Windows Mobile store that were developed this way…the latest Candy Crush Saga games were done this way as well as some banking and other non-gaming apps.

I did go back and look at the Binge On ad…buried in the very fine print, they do specify the plans it applies to…but the ads and Legere’s Tweets, imply otherwise.  Same for this current promotion.  Now I know that in any future promotion, I will be treated the same. Unless I buy an iPhone 6 or Samsung Galaxy S whatever and go on an expensive $65 a month plan.

No thanks.

AT and T, can you do better?

EDIT: After posting this, I get the following direct message from them:

Hey there George! We truly appreciate your business and want to make sure we are 100% on the same page moving forward. As a prepaid customer to take advantage of T-Mobile Tuesdays you must use the app versions. At the present time we only have Android and iOS apps. The great news is you can still participate in all of the fun over at https://t.co/pH3K6qyHYC You can view a list of the web requirements here: https://t.co/vgHFxiRCp3 Please let us know if you have any additional questions or concerns. We are here for you. *JasonY

In effect, they consider me a non-customer as that site is for some drawing for non-customers.  Nice.