K-theory for the $C^*-$algebra of the continuous functions on the $2-$torus and the Bott projection

If you want an explicit projection, you can form a variation of a Rieffel projection as follows. First take any function $f$ from $[-\pi/2,\pi/2]$ to $[0,1]$ that sends $-\pi/2$ to $1$, dips down to $0$ at $0$ and then goes back up to take value $1$ at $\pi/2$. Now define two more functions $$ g=\begin{cases} 0 & x\in\left[-\frac{\pi}{2},\frac{\pi}{2}\right]\\ \sqrt{f-f^{2}} & x\notin\left[-\frac{\pi}{2},\frac{\pi}{2}\right] \end{cases} $$ and $$ h=\begin{cases} \sqrt{f-f^{2}} & x\in\left[-\frac{\pi}{2},\frac{\pi}{2}\right]\\ 0 & x\notin\left[-\frac{\pi}{2},\frac{\pi}{2}\right] \end{cases} . $$ The projection then is then $$ p(\phi,\theta) = \left[\begin{array}{cc} f(\phi) & g(\phi)+h(\phi)e^{i\theta}\\ g(\phi)+h(\phi)e^{-i\theta} & 1-f(\phi) \end{array}\right] . $$


I think you may have mixed up the K-theory of the 2-torus with the K-theory of the sphere. Generally, the Bott element is considered as a projection in $K_0(C(S^2)) \cong K_0(C_0(\mathbb{R}^2)) $ which are isomorphic since $S^2$ is the one point compactification of $\mathbb{R}^2.$

If we define $S^2 = \{(x,y,z) \in \mathbb{R}^3 \, | \, x^2+y^2+z^2=1\}$ then $$p(x,y,z) = \begin{pmatrix} \frac{1+x}{2} & \frac{y+iz}{2}\\ \frac{y-iz}{2} & \frac{1-x}{2}\\ \end{pmatrix}$$ is a projection matrix with values in $C(S^2)$ representing the Bott element in $K_0(C(S^2)).$ This description is taken verbatim from Example 6.2.3 of Rosenberg's book "Algebraic K-theory and its Applications."

EDIT: Since you do want to know about the K-theory of the 2-torus, here are two ways to understand it. First, as Paul suggested, it is easy to understand $K^0(T^1)$ since it is trivially isomorphic to $\mathbb{Z}.$ Now use the Kunneth Theorem for K-theory to compute $K^0(T^1 \times T^1)$ and carefully keep track of where everything goes.

Alternatively, from a more algebraic standpoint, one can construct explicit modules over $C(T^2)$ to exhibit the $K_0$ classes. This can be found, for example, in "Projective Multiresolution Analyses for $L^2(\mathbb{R}^2)$ by Packer and Rieffel in Section 4. To construct projections associated to these modules, one needs the tool of standard module frames (as I mentioned in my answer to your other question).

It may help to compare their construction of projective modules over $C(T^2)$ to the classical construction of holomorphic vector bundles over tori in complex analysis, as in Chapter I Section 2 of Mumford's "Abelian Varieties." This should help bridge the gap between the topological/algebraic treatments.