# Trying to make object oriented (Class based) typescripts in blocks for microbit

**URL:** https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275
**Category:** micro:bit
**Created:** [May 31, 2020, 2:43am UTC](https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275 "2020-05-31T02:43:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ameyrr250](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ameyrr250](https://forum.makecode.com/u/ameyrr250)
#### Post date: [May 31, 2020, 2:43am UTC](https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275/1 "2020-05-31T02:43:43Z")

</div>

Hi,  
I have two questions

1. 

I want to make some typescript files, add blocks and test them on microbit. I have tried multiple ways and instructions of installing and using the pxt-microbit, including this “[https://github.com/microsoft/pxt-microbit](https://github.com/microsoft/pxt-microbit)”. I got some errors while installing and searched a lot and found solutions and installed too. After installing, I keep seeing under “problems” some C++ related errors like “#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\User1\pxt-microbit\libs\core\led.cpp).” -even if I don’t make a single change to the actual project. I call pxt serve regardless and can see the webpage opening and I can create a project and see the existing blocks, but if I change anything in the blocks and call pxt serve again, I don’t see any changes in the blocks (I am trying minimal changes such as just changing some words in descriptor.

Please let me know what I can do? I have tried multiple things but nothing has worked so far.

1. I want to make class-based(object oriented) typescripts for adding blocks to support connecting microbits to multiple clickboards. I wanted to know if there are any good sources or any instructions for the same.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 31, 2020, 6:07am UTC](https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275/2 "2020-05-31T06:07:15Z")

</div>

Go to the [https://MakeCode.microbit.org/beta](https://MakeCode.microbit.org/beta) and edit your typescript blocks directly from MakeCode. We have GitHub support integrated now.

---

<div class="post-metadata">

### Author: ![ameyrr250](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ameyrr250](https://forum.makecode.com/u/ameyrr250)
#### Post date: [May 31, 2020, 6:40am UTC](https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275/3 "2020-05-31T06:40:05Z")

</div>

Hi,  
Thanks for the reply.  
I want to add new .ts files of mine, which I don’t see an option of. Also, the files that do exist cannot be edited. I want to create blocks of my own.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 31, 2020, 3:37pm UTC](https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275/4 "2020-05-31T15:37:59Z")

</div>

This video should help you [https://m.youtube.com/watch?v=Ku\_nHstZS64&list=PLMMBk9hE-SepwjCAK7cY-jvq6KeQKda8x&index=14&t=0s](https://m.youtube.com/watch?v=Ku_nHstZS64&list=PLMMBk9hE-SepwjCAK7cY-jvq6KeQKda8x&index=14&t=0s)
